mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 00:13:57 +00:00
[CRT] exp2*.c: Add an explicit type for 'TWO' variable
Addendum to 199adee
.
This commit is contained in:
parent
b6493654a3
commit
b8ae966634
|
@ -8,6 +8,6 @@ exp2(
|
||||||
_In_ double x)
|
_In_ double x)
|
||||||
{
|
{
|
||||||
/* This below avoids clang to optimize our pow call to exp2 */
|
/* 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);
|
return pow(TWO, x);
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,6 @@ exp2f(
|
||||||
_In_ float x)
|
_In_ float x)
|
||||||
{
|
{
|
||||||
/* This below avoids clang to optimize our pow call to exp2 */
|
/* 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);
|
return powf(TWO, x);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue