diff options
Diffstat (limited to 'libc-top-half/musl/src/math/scalbln.c')
-rw-r--r-- | libc-top-half/musl/src/math/scalbln.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/math/scalbln.c b/libc-top-half/musl/src/math/scalbln.c new file mode 100644 index 0000000..e6f3f19 --- /dev/null +++ b/libc-top-half/musl/src/math/scalbln.c @@ -0,0 +1,11 @@ +#include <limits.h> +#include <math.h> + +double scalbln(double x, long n) +{ + if (n > INT_MAX) + n = INT_MAX; + else if (n < INT_MIN) + n = INT_MIN; + return scalbn(x, n); +} |