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