c99_math: Implement exp2f for MSVC.
authorMatt Turner <mattst88@gmail.com>
Thu, 16 Jul 2015 04:28:56 +0000 (21:28 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 29 Jul 2015 16:34:51 +0000 (09:34 -0700)
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
include/c99_math.h

index 7ed7cc2..0ca5a73 100644 (file)
@@ -140,6 +140,12 @@ llrintf(float f)
    return rounded;
 }
 
+static inline float
+exp2f(float f)
+{
+   return powf(2.0f, f);
+}
+
 #endif /* C99 */