[CRT] exp2*.c: Add an explicit type for 'TWO' variable

Addendum to 199adee.
This commit is contained in:
Serge Gautherie 2021-04-10 04:37:07 +02:00 committed by Stanislav Motylkov
parent b6493654a3
commit b8ae966634
2 changed files with 2 additions and 2 deletions

View file

@ -8,6 +8,6 @@ exp2(
_In_ double x)
{
/* This below avoids clang to optimize our pow call to exp2 */
static const TWO = 2.0;
static const double TWO = 2.0;
return pow(TWO, x);
}

View file

@ -8,6 +8,6 @@ exp2f(
_In_ float x)
{
/* This below avoids clang to optimize our pow call to exp2 */
static const TWO = 2.0f;
static const float TWO = 2.0f;
return powf(TWO, x);
}