From: Matt Turner Date: Thu, 16 Jul 2015 04:28:56 +0000 (-0700) Subject: c99_math: Implement exp2f for MSVC. X-Git-Tag: upstream/17.1.0~17292 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ecc559218d0a544f8a5f878c500f125c2d588d82;p=platform%2Fupstream%2Fmesa.git c99_math: Implement exp2f for MSVC. Reviewed-by: Jose Fonseca --- diff --git a/include/c99_math.h b/include/c99_math.h index 7ed7cc2..0ca5a73 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 */