aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 */