Module: Mesa Branch: master Commit: 2b916c6e47862d82b5545e962ebb83b811904c3b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2b916c6e47862d82b5545e962ebb83b811904c3b
Author: Roland Scheidegger <[email protected]> Date: Wed Jul 29 22:20:04 2015 +0200 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 0ca5a73..8a67fb1 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 */ _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
