diff mbox

Don't redirect ldexp to scalbn in bits/math-finite.h (bug 19209) [committed]

Message ID alpine.DEB.2.10.1511051702070.26133@digraph.polyomino.org.uk
State New
Headers show

Commit Message

Joseph Myers Nov. 5, 2015, 5:02 p.m. UTC
bits/math-finite.h maps ldexp functions to corresponding scalbn
functions.  This is (a) a namespace bug for C90, which has ldexp but
not scalbn, and (b) in any case useless, since the ldexp and scalbn
functions have identical semantics (for floating-point types with
radix 2), and since the fix for bug 6803 are actually aliases
(presumably the mapping was based around the old bug of scalbn not
setting errno).  This patch removes the bogus redirections.

Tested for x86_64 and x86.  Committed.

2015-11-05  Joseph Myers  <joseph@codesourcery.com>

	[BZ #19209]
	* math/bits/math-finite.h (ldexp): Remove declaration.
	(ldexpf): Likewise.
	(ldexpl): Likewise.
diff mbox

Patch

diff --git a/math/bits/math-finite.h b/math/bits/math-finite.h
index e5f11b2..5dd8406 100644
--- a/math/bits/math-finite.h
+++ b/math/bits/math-finite.h
@@ -413,15 +413,6 @@  extern long double __REDIRECT_NTH (log2l, (long double), __log2l_finite);
 # endif
 #endif
 
-/* ldexp.  */
-extern double __REDIRECT_NTH (ldexp, (double, int), scalbn);
-#ifdef __USE_ISOC99
-extern float __REDIRECT_NTH (ldexpf, (float, int), scalbnf);
-# ifdef __MATH_DECLARE_LDOUBLE
-extern long double __REDIRECT_NTH (ldexpl, (long double, int), scalbnl);
-# endif
-#endif
-
 /* pow.  */
 extern double __REDIRECT_NTH (pow, (double, double), __pow_finite);
 #ifdef __USE_ISOC99