Mesa (master): c99_math: Implement exp2f for MSVC.
Matt Turner
mattst88 at kemper.freedesktop.org
Wed Jul 29 16:32:06 UTC 2015
Module: Mesa
Branch: master
Commit: ecc559218d0a544f8a5f878c500f125c2d588d82
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ecc559218d0a544f8a5f878c500f125c2d588d82
Author: Matt Turner <mattst88 at gmail.com>
Date: Wed Jul 15 21:28:56 2015 -0700
c99_math: Implement exp2f for MSVC.
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
---
include/c99_math.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/c99_math.h b/include/c99_math.h
index 7ed7cc2..0ca5a73 100644
--- 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 */
More information about the mesa-commit
mailing list