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 0ca5a73b58a..8a67fb133d6 100644
--- a/include/c99_math.h
+++ b/include/c99_math.h
@@ -146,6 +146,12 @@ exp2f(float f)
return powf(2.0f, f);
}
+static inline double
+exp2(double d)
+{
+ return pow(2.0, d);
+}
+
#endif /* C99 */