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

@ -5,6 +5,7 @@
#include "cellAudio.h"
#include "libmixer.h"
#include <cmath>
LOG_CHANNEL(libmixer);
@ -355,7 +356,7 @@ s32 cellSurMixerCreate(vm::cptr<CellSurMixerConfig> config)
auto v = vm::ptrl<s16>::make(p.m_addr); // 16-bit LE audio data
float left = 0.0f;
float right = 0.0f;
float speed = fabs(p.m_speed);
float speed = std::fabs(p.m_speed);
float fpos = 0.0f;
for (s32 i = 0; i < 256; i++) if (p.m_active)
{