projects
/
platform
/
upstream
/
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
0ca5a73
..
8a67fb1
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 */