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 7ed7cc22176c45e4c93700eef5ec0d0ee598cffe..0ca5a73b58adf72dd9f824f4b48211e08a8c3738 100644 (file)
@@ -140,6 +140,12 @@ llrintf(float f)
    return rounded;
 }
 
+static inline float
+exp2f(float f)
+{
+   return powf(2.0f, f);
+}
+
 #endif /* C99 */