From: Roland Scheidegger Date: Wed, 29 Jul 2015 20:20:04 +0000 (+0200) Subject: c99_math: (trivial) implement exp2 for MSVC too X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b916c6e47862d82b5545e962ebb83b811904c3b;p=mesa.git c99_math: (trivial) implement exp2 for MSVC too Unsurprisingly doesn't build otherwise with old msvc. --- 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 */