projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e933d54
)
c99_math: (trivial) implement exp2 for MSVC too
author
Roland Scheidegger
<sroland@vmware.com>
Wed, 29 Jul 2015 20:20:04 +0000
(22:20 +0200)
committer
Roland Scheidegger
<sroland@vmware.com>
Wed, 29 Jul 2015 20:20:04 +0000
(22:20 +0200)
Unsurprisingly doesn't build otherwise with old msvc.
include/c99_math.h
patch
|
blob
|
history
diff --git
a/include/c99_math.h
b/include/c99_math.h
index 0ca5a73b58adf72dd9f824f4b48211e08a8c3738..8a67fb133d6e26013c0e5be8e5d84d33d0a5b5e9 100644
(file)
--- a/
include/c99_math.h
+++ b/
include/c99_math.h
@@
-146,6
+146,12
@@
exp2f(float f)
return powf(2.0f, f);
}
+static inline double
+exp2(double d)
+{
+ return pow(2.0, d);
+}
+
#endif /* C99 */