Alias scalbn as ldexpl and scalbnl on platforms where long double is

the same as double.
This commit is contained in:
David Schultz 2005-03-07 04:58:03 +00:00
parent 7b6a19039d
commit beed720c37
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143220

View file

@ -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