freebsd-dev/lib/msun/i387
Bruce Evans 3454a5a101 Removed the optimized asm versions of scalb() and scalbf(). These
functions are only for compatibility with obsolete standards.  They
shouldn't be used, so they shouldn't be optimized.  Use the generic
versions instead.

This fixes scalbf() as a side effect.  The optimized asm version left
garbage on the FP stack.  I fixed the corresponding bug in the optimized
asm scalb() and scalbn() in 1996.  NetBSD fixed it in scalb(), scalbn()
and scalbnf() in 1999 but missed fixing it in scalbf().  Then in 2005
the bug was reimplemented in FreeBSD by importing NetBSD's scalbf().

The generic versions have slightly different error handling:
- the asm versions blindly round the second parameter to a (floating
  point) integer and proceed, while the generic versions return NaN
  if this rounding changes the value.  POSIX permits both behaviours
  (these functions are XSI extensions and the behaviour for a bogus
  non-integral second parameter is unspecified).   Apart from this
  and the bug in scalbf(), the behaviour of the generic versions seems
  to be identical.  (I only exhusatively tested
  generic_scalbf(1.0F, anyfloat) == asm_scalb(1.0F, anyfloat).  This
  covers many representative corner cases involving NaNs and Infs but
  doesn't test exception flags.  The brokenness of scalbf() showed up
  as weird behaviour after testing just 7 integer cases sequentially.)
2006-07-05 20:06:42 +00:00
..
e_exp.S Fixed some comments added in rev.1.5. 2005-10-30 12:21:02 +00:00
e_fmod.S Remove wrappers and other cruft intended to support SVID, mistakes in 2005-02-04 14:08:32 +00:00
e_log10.S Remove wrappers and other cruft intended to support SVID, mistakes in 2005-02-04 14:08:32 +00:00
e_log10f.S Remove wrappers and other cruft intended to support SVID, mistakes in 2005-02-04 14:08:32 +00:00
e_log.S Remove wrappers and other cruft intended to support SVID, mistakes in 2005-02-04 14:08:32 +00:00
e_logf.S Remove wrappers and other cruft intended to support SVID, mistakes in 2005-02-04 14:08:32 +00:00
e_remainder.S Remove wrappers and other cruft intended to support SVID, mistakes in 2005-02-04 14:08:32 +00:00
e_remainderf.S Remove wrappers and other cruft intended to support SVID, mistakes in 2005-02-04 14:08:32 +00:00
e_sqrt.S Remove wrappers and other cruft intended to support SVID, mistakes in 2005-02-04 14:08:32 +00:00
e_sqrtf.S Remove wrappers and other cruft intended to support SVID, mistakes in 2005-02-04 14:08:32 +00:00
fenv.c Make the fenv.h routines work for programs that use SSE for 2005-03-17 22:21:46 +00:00
fenv.h Make the fenv.h routines work for programs that use SSE for 2005-03-17 22:21:46 +00:00
Makefile.inc Removed the optimized asm versions of scalb() and scalbf(). These 2006-07-05 20:06:42 +00:00
s_ceil.S
s_ceilf.S Prevent these functions from using stack outside of their frame. 2005-05-06 15:44:20 +00:00
s_ceill.S More optimized math functions. 2005-04-16 21:12:55 +00:00
s_copysign.S
s_copysignf.S Import the subset of J.T. Conklin's single-precision x86-optimized 2005-01-13 18:58:25 +00:00
s_copysignl.S More optimized math functions. 2005-04-16 21:12:55 +00:00
s_cos.S
s_finite.S
s_floor.S
s_floorf.S Prevent these functions from using stack outside of their frame. 2005-05-06 15:44:20 +00:00
s_floorl.S More optimized math functions. 2005-04-16 21:12:55 +00:00
s_llrint.S Faster lrint() and llrint() implementations for x86. 2005-01-11 23:10:53 +00:00
s_llrintf.S More optimized math functions. 2005-04-16 21:12:55 +00:00
s_logb.S
s_logbf.S Import the subset of J.T. Conklin's single-precision x86-optimized 2005-01-13 18:58:25 +00:00
s_lrint.S Faster lrint() and llrint() implementations for x86. 2005-01-11 23:10:53 +00:00
s_lrintf.S More optimized math functions. 2005-04-16 21:12:55 +00:00
s_remquo.S Implement and document remquo() and remquof(). 2005-03-25 04:40:44 +00:00
s_remquof.S Implement and document remquo() and remquof(). 2005-03-25 04:40:44 +00:00
s_rint.S
s_rintf.S Import the subset of J.T. Conklin's single-precision x86-optimized 2005-01-13 18:58:25 +00:00
s_scalbn.S
s_scalbnf.S Alias scalbnf as ldexpf. The two are identical in binary 2005-03-07 04:52:43 +00:00
s_scalbnl.S Add scalbnl, also known as as ldexpl. 2005-03-07 04:52:58 +00:00
s_significand.S
s_significandf.S Import the subset of J.T. Conklin's single-precision x86-optimized 2005-01-13 18:58:25 +00:00
s_sin.S
s_tan.S
s_trunc.S More optimized math functions. 2005-04-16 21:12:55 +00:00
s_truncf.S Prevent these functions from using stack outside of their frame. 2005-05-06 15:44:20 +00:00
s_truncl.S More optimized math functions. 2005-04-16 21:12:55 +00:00
Symbol.map Add symbol versioning to libm. 2006-03-27 23:59:45 +00:00