Replace math macros by function calls from cmath. (#1695)

This commit is contained in:
John 2016-05-19 09:15:56 -07:00 committed by Ivan
parent 805c778f91
commit ce3fdeda5e
4 changed files with 10 additions and 5 deletions

View file

@ -2,6 +2,7 @@
#include "Emu/System.h"
#include "PPUThread.h"
#include "PPUInterpreter.h"
#include <cmath>
// TODO: fix rol8 and rol16 for __GNUG__ (probably with __asm__)
inline u8 rol8(const u8 x, const u8 n) { return x << n | x >> (8 - n); }
@ -135,7 +136,7 @@ public:
{
for (s32 i = -31; i < 32; i++)
{
m_data[i + 31] = _mm_set1_ps(static_cast<float>(exp2(i)));
m_data[i + 31] = _mm_set1_ps(static_cast<float>(std::exp2(i)));
}
}