diff options
author | Chris Robinson <[email protected]> | 2017-07-13 22:30:39 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-07-13 22:30:39 -0700 |
commit | a535169bbdd6766cbc6b53188065fbee6d4da1bc (patch) | |
tree | 26fd1cf5cf1cd7220026a817180dd1f7583d751b /Alc/ALu.c | |
parent | 22d77b87a3f103eeceec004cd9d053c17bf1b883 (diff) |
Use macros to set and restore the mixer FPU mode
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1611,11 +1611,9 @@ void aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) { ALsizei SamplesToDo; ALCcontext *ctx; - FPUCtl oldMode; ALsizei i, c; - SetMixerFPUMode(&oldMode); - + START_MIXER_MODE(); while(size > 0) { SamplesToDo = mini(size, BUFFERSIZE); @@ -1819,8 +1817,7 @@ void aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) size -= SamplesToDo; } - - RestoreFPUMode(&oldMode); + END_MIXER_MODE(); } |