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