about summary refs log tree commit diff
path: root/src/math/scalblnf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/scalblnf.c')
-rw-r--r--src/math/scalblnf.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/math/scalblnf.c b/src/math/scalblnf.c
new file mode 100644
index 00000000..61600f18
--- /dev/null
+++ b/src/math/scalblnf.c
@@ -0,0 +1,11 @@
+#include <limits.h>
+#include "libm.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);
+}