aboutsummaryrefslogtreecommitdiffstats
path: root/include/c99_math.h
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-07-15 21:28:56 -0700
committerMatt Turner <[email protected]>2015-07-29 09:34:51 -0700
commitecc559218d0a544f8a5f878c500f125c2d588d82 (patch)
tree2c377fc767e3bf91c99e3dc10d32369bec73917d /include/c99_math.h
parent5c7fd670459ebff452adeec335c77854af903842 (diff)
c99_math: Implement exp2f for MSVC.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'include/c99_math.h')
-rw-r--r--include/c99_math.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/c99_math.h b/include/c99_math.h
index 7ed7cc22176..0ca5a73b58a 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 */