From 2b916c6e47862d82b5545e962ebb83b811904c3b Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Wed, 29 Jul 2015 22:20:04 +0200 Subject: c99_math: (trivial) implement exp2 for MSVC too Unsurprisingly doesn't build otherwise with old msvc. --- include/c99_math.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/c99_math.h b/include/c99_math.h index 0ca5a73b58..8a67fb133d 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 */ -- cgit v1.2.3