freebsd-dev/lib/msun
Bruce Evans d79d610d9c Fixed the threshold for using the simple Taylor approximation.
In e_log.c, there was just a off-by-1 (1 ulp) error in the comment
about the threshold.  The precision of the threshold is unimportant,
but the magic numbers in the code are easier to understand when the
threshold is described precisely.

In e_logf.c, mistranslation of the magic numbers gave an off-by-1
(1 * 16 ulps) error in the intended negative bound for the threshold
and an off-by-7 (7 * 16 ulps) error in the intended positive bound for
the threshold, and the intended bounds were not translated from the
double precision bounds so they were unnecessarily small by a factor
of about 2048.

The optimization of using the simple Taylor approximation for args
near a power of 2 is dubious since it only applies to a relatively
small proportion of args, but if it is done then doing it 2048 times
as often _may_ be more efficient.  (My benchmarks show unexplained
dependencies on the data that increase with further optimizations
in this area.)
2006-07-07 04:33:08 +00:00
..
alpha Add symbol versioning to libm. 2006-03-27 23:59:45 +00:00
amd64 Add symbol versioning to libm. 2006-03-27 23:59:45 +00:00
arm Add symbol versioning to libm. 2006-03-27 23:59:45 +00:00
bsdsrc Removed an unused declaration which was so old that it wasn't a prototype 2005-11-18 05:03:12 +00:00
i387 Removed the optimized asm versions of scalb() and scalbf(). These 2006-07-05 20:06:42 +00:00
ia64 Add symbol versioning to libm. 2006-03-27 23:59:45 +00:00
man s/5.5/6.0/ in HISTORY section. 2005-11-24 09:25:10 +00:00
powerpc Add symbol versioning to libm. 2006-03-27 23:59:45 +00:00
sparc64 Add symbol versioning to libm. 2006-03-27 23:59:45 +00:00
src Fixed the threshold for using the simple Taylor approximation. 2006-07-07 04:33:08 +00:00
Makefile Add symbol versioning to libm. 2006-03-27 23:59:45 +00:00
Symbol.map Add symbol versioning to libm. 2006-03-27 23:59:45 +00:00