musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/math/scalbln.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/scalbln.c')
-rw-r--r--src/math/scalbln.c 11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/math/scalbln.c b/src/math/scalbln.c
new file mode 100644
index 00000000..53854fda
--- /dev/null
+++ b/src/math/scalbln.c
@@ -0,0 +1,11 @@
+#include <limits.h>
+#include "libm.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);
+}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月23日 14:46:00 +0000

AltStyle によって変換されたページ (->オリジナル) /