mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
c99_math: (trivial) implement exp2 for MSVC too
Unsurprisingly doesn't build otherwise with old msvc.
This commit is contained in:
parent
e933d54599
commit
2b916c6e47
1 changed files with 6 additions and 0 deletions
|
|
@ -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 */
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue