c99_math: (trivial) implement exp2 for MSVC too

Unsurprisingly doesn't build otherwise with old msvc.
This commit is contained in:
Roland Scheidegger 2015-07-29 22:20:04 +02:00
parent e933d54599
commit 2b916c6e47
1 changed files with 6 additions and 0 deletions

View File

@ -146,6 +146,12 @@ exp2f(float f)
return powf(2.0f, f);
}
static inline double
exp2(double d)
{
return pow(2.0, d);
}
#endif /* C99 */