Add scalbn family of functions

This commit is contained in:
Erik van der Kouwe
2010-01-08 07:27:54 +00:00
parent 17b10f1bf3
commit aec561acc5
4 changed files with 46 additions and 0 deletions
+1
View File
@@ -19,6 +19,7 @@ libc_FILES=" \
log10.c \
pow.c \
s_rint.c \
scalbn.c \
sin.c \
sinh.c \
sqrt.c \
+22
View File
@@ -0,0 +1,22 @@
#include <math.h>
double scalbln(double x, long n)
{
return ldexp(x, n);
}
float scalblnf(float x, long n)
{
return ldexp(x, n);
}
double scalbn(double x, int n)
{
return ldexp(x, n);
}
float scalbnf(float x, int n)
{
return ldexp(x, n);
}