From adcae0d9cf146da71701d5087cd1f10a525daa04 Mon Sep 17 00:00:00 2001 From: das Date: Mon, 7 Mar 2005 04:58:03 +0000 Subject: Alias scalbn as ldexpl and scalbnl on platforms where long double is the same as double. --- lib/msun/src/s_scalbn.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/msun/src') diff --git a/lib/msun/src/s_scalbn.c b/lib/msun/src/s_scalbn.c index f3d37da..b7ffc3f 100644 --- a/lib/msun/src/s_scalbn.c +++ b/lib/msun/src/s_scalbn.c @@ -21,6 +21,9 @@ static char rcsid[] = "$FreeBSD$"; * exponentiation or a multiplication. */ +#include +#include + #include "math.h" #include "math_private.h" @@ -56,3 +59,8 @@ scalbn (double x, int n) SET_HIGH_WORD(x,(hx&0x800fffff)|(k<<20)); return x*twom54; } + +#if (LDBL_MANT_DIG == 53) +__strong_reference(scalbn, ldexpl); +__strong_reference(scalbn, scalbnl); +#endif -- cgit v1.1