summaryrefslogtreecommitdiff
path: root/src/math/ldexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/ldexp.c')
-rw-r--r--src/math/ldexp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/math/ldexp.c b/src/math/ldexp.c
new file mode 100644
index 00000000..36835dba
--- /dev/null
+++ b/src/math/ldexp.c
@@ -0,0 +1,6 @@
+#include "libm.h"
+
+double ldexp(double x, int n)
+{
+ return scalbn(x, n);
+}