summaryrefslogtreecommitdiffstats
path: root/lib/msun/src/s_scalbn.c
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2005-03-07 04:58:03 +0000
committerdas <das@FreeBSD.org>2005-03-07 04:58:03 +0000
commitadcae0d9cf146da71701d5087cd1f10a525daa04 (patch)
treefb7259e9f98e1c97d6fb74cd7820ca33f909515e /lib/msun/src/s_scalbn.c
parent6bde47de7886c64ef75ad4d626d23f8e3d1dab8f (diff)
downloadFreeBSD-src-adcae0d9cf146da71701d5087cd1f10a525daa04.zip
FreeBSD-src-adcae0d9cf146da71701d5087cd1f10a525daa04.tar.gz
Alias scalbn as ldexpl and scalbnl on platforms where long double is
the same as double.
Diffstat (limited to 'lib/msun/src/s_scalbn.c')
-rw-r--r--lib/msun/src/s_scalbn.c8
1 files changed, 8 insertions, 0 deletions
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 <sys/cdefs.h>
+#include <float.h>
+
#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
OpenPOWER on IntegriCloud