Add scalbn family of functions
This commit is contained in:
@@ -19,6 +19,7 @@ libc_FILES=" \
|
||||
log10.c \
|
||||
pow.c \
|
||||
s_rint.c \
|
||||
scalbn.c \
|
||||
sin.c \
|
||||
sinh.c \
|
||||
sqrt.c \
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user