2021-04-09 12:33:27 +00:00
|
|
|
|
|
|
|
#include <math.h>
|
|
|
|
|
|
|
|
_Check_return_
|
|
|
|
float
|
|
|
|
__cdecl
|
|
|
|
exp2f(
|
|
|
|
_In_ float x)
|
|
|
|
{
|
|
|
|
/* This below avoids clang to optimize our pow call to exp2 */
|
2021-04-10 02:37:07 +00:00
|
|
|
static const float TWO = 2.0f;
|
2021-04-09 12:33:27 +00:00
|
|
|
return powf(TWO, x);
|
|
|
|
}
|