Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Mar 1995 22:07:47 -0800 (PST)
From:      Poul-Henning Kamp <phk@ref.tfs.com>
To:        pst@shockwave.com (Paul Traina)
Cc:        bde@zeta.org.au, rgrimes@gndrsh.aac.dev.com, CVS-commiters@time.cdrom.com, cvs-etc@time.cdrom.com, jkh@freebsd.org
Subject:   Re: cvs commit: src/etc make.conf
Message-ID:  <199503210607.WAA29657@ref.tfs.com>
In-Reply-To: <199503210603.WAA06714@precipice.Shockwave.COM> from "Paul Traina" at Mar 20, 95 10:03:31 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> The extra test on every operation is bad.
true...

> Xonsider the following fragment or high-speed linkages with shared libraries
> instead (I don't know how fast or slow shared linkages are):
> 
> 	static vec_pow = pow_init;
> 
> 	pow (base, exp)
> 	{
> 		return (*vec_pow)(base, exp);
> 	}
> 
> 	pow_init (base, exp)
> 	{
> 		vec_pow = _have_i387 ? _i387_pow(base, exp)
> 				     : __ieee754_pow(base,exp);
> 
> 		return (*vec_pow)(base, exp);
> 	}

nice!

-- 
Poul-Henning Kamp <phk@login.dknet.dk> -- TRW Financial Systems, Inc.
'All relevant people are pertinent' && 'All rude people are impertinent'
=> 'no rude people are relevant'



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503210607.WAA29657>