projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[CRT] Add a generic C version of exp2(f) and use it for all architecture
[reactos.git]
/
sdk
/
lib
/
crt
/
math
/
exp2.c
diff --git a/sdk/lib/crt/math/exp2.c
b/sdk/lib/crt/math/exp2.c
new file mode 100644
(file)
index 0000000..
e843be9
--- /dev/null
+++ b/
sdk/lib/crt/math/exp2.c
@@ -0,0
+1,13
@@
+
+#include <math.h>
+
+_Check_return_
+double
+__cdecl
+exp2(
+ _In_ double x)
+{
+ /* This below avoids clang to optimize our pow call to exp2 */
+ static const TWO = 2.0;
+ return pow(TWO, x);
+}