projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c7fd67
)
c99_math: Implement exp2f for MSVC.
author
Matt Turner
<mattst88@gmail.com>
Thu, 16 Jul 2015 04:28:56 +0000
(21:28 -0700)
committer
Matt Turner
<mattst88@gmail.com>
Wed, 29 Jul 2015 16:34:51 +0000
(09:34 -0700)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
include/c99_math.h
patch
|
blob
|
history
diff --git
a/include/c99_math.h
b/include/c99_math.h
index 7ed7cc22176c45e4c93700eef5ec0d0ee598cffe..0ca5a73b58adf72dd9f824f4b48211e08a8c3738 100644
(file)
--- a/
include/c99_math.h
+++ b/
include/c99_math.h
@@
-140,6
+140,12
@@
llrintf(float f)
return rounded;
}
+static inline float
+exp2f(float f)
+{
+ return powf(2.0f, f);
+}
+
#endif /* C99 */