]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Backed out rev.1.10. It tried to implement ldexpf() as a weak reference
authorbde <bde@FreeBSD.org>
Wed, 5 Jul 2006 02:16:29 +0000 (02:16 +0000)
committerbde <bde@FreeBSD.org>
Wed, 5 Jul 2006 02:16:29 +0000 (02:16 +0000)
commit31501671ae64a4fd2848fbcda9f67012a5ce8fd3
treef6565f0c991a8993e8e4266ec63c02393635ffc8
parent7ae1ec85dc1edc399a954a13e04d4800fbe0c335
Backed out rev.1.10.  It tried to implement ldexpf() as a weak reference
to scalbf(), but ldexpf() cannot be implemented in that way since the
types of the second parameter differ.  ldexpf() can be implemented as
a weak or strong reference to scalbnf() (*) but that was already done
long before rev.1.10 was committed.  The old implementation uses a
reference, so rev.1.10 had no effect on applications.  The C files for
the scalb() family are not used for amd64 or i386, so rev.1.10 had even
less effect for these arches.

(*) scalbnf() raises the radix to the given exponent, while ldexpf()
raises 2 to the given exponent.  Thus the functions are equivalent
except possibly for their error handling iff the radix is 2.  Standards
more or less require identical error handling.  Under FreeBSD, the
functions are equivalent except for more details being missing in
scalbnf()'s man page.
lib/msun/src/e_scalbf.c