Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/mathfp/s_exp2.c')
-rw-r--r--newlib/libm/mathfp/s_exp2.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/newlib/libm/mathfp/s_exp2.c b/newlib/libm/mathfp/s_exp2.c
new file mode 100644
index 000000000..3bcf7ca2c
--- /dev/null
+++ b/newlib/libm/mathfp/s_exp2.c
@@ -0,0 +1,18 @@
+/* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include "fdlibm.h"
+
+#ifndef _DOUBLE_IS_32BITS
+
+double
+_DEFUN (exp2, (double),
+ double x)
+{
+ return pow(2.0, x);
+}
+
+#endif /* _DOUBLE_IS_32BITS */