From: Matt Turner Date: Thu, 16 Jul 2015 04:28:56 +0000 (-0700) Subject: c99_math: Implement exp2f for MSVC. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ecc559218d0a544f8a5f878c500f125c2d588d82;p=mesa.git c99_math: Implement exp2f for MSVC. Reviewed-by: Jose Fonseca --- diff --git a/include/c99_math.h b/include/c99_math.h index 7ed7cc22176..0ca5a73b58a 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 */