summaryrefslogtreecommitdiffstats
path: root/include/c99_math.h
diff options
context:
space:
mode:
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 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 */