From 4b2011300baccbd46554d9cd362e937ff04d3da1 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Mon, 7 Mar 2005 04:52:43 +0000 Subject: [PATCH] Alias scalbnf as ldexpf. The two are identical in binary floating-point formats. --- lib/msun/i387/s_scalbnf.S | 3 +++ lib/msun/src/s_scalbnf.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/lib/msun/i387/s_scalbnf.S b/lib/msun/i387/s_scalbnf.S index bdf0292bfcb4..3c84749b6c42 100644 --- a/lib/msun/i387/s_scalbnf.S +++ b/lib/msun/i387/s_scalbnf.S @@ -14,3 +14,6 @@ ENTRY(scalbnf) fscale fstp %st(1) /* bug fix for fp stack overflow */ ret + +.globl CNAME(ldexpf) +.set CNAME(ldexpf),CNAME(scalbnf) diff --git a/lib/msun/src/s_scalbnf.c b/lib/msun/src/s_scalbnf.c index b0e20791a6b6..7666c74ab22c 100644 --- a/lib/msun/src/s_scalbnf.c +++ b/lib/msun/src/s_scalbnf.c @@ -17,6 +17,8 @@ static char rcsid[] = "$FreeBSD$"; #endif +#include + #include "math.h" #include "math_private.h" @@ -52,3 +54,5 @@ scalbnf (float x, int n) SET_FLOAT_WORD(x,(ix&0x807fffff)|(k<<23)); return x*twom25; } + +__strong_reference(scalbnf, ldexpf);