diff options
author | Chris Robinson <[email protected]> | 2014-01-26 01:34:39 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-01-26 01:34:39 -0800 |
commit | a4bc0a46e9e0fe001d4c14909b47ed4ac8d81960 (patch) | |
tree | a0ba33c23b3ceeb36e44f3d0212091398da6bcf3 /Alc/ALc.c | |
parent | 49baa9128dd98e986639def4f24c7522d9ec6b56 (diff) |
Implement dry and wet mixers for Neon
Code provided by Philippe Simons <[email protected]>.
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1745,8 +1745,8 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) device->UpdateSize = (ALuint64)device->UpdateSize * freq / device->Frequency; - /* SSE does best with the update size being a multiple of 4 */ - if((CPUCapFlags&CPU_CAP_SSE)) + /* SSE and Neon do best with the update size being a multiple of 4 */ + if((CPUCapFlags&(CPU_CAP_SSE|CPU_CAP_NEON)) != 0) device->UpdateSize = (device->UpdateSize+3)&~3; device->Frequency = freq; @@ -1861,6 +1861,8 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) { if((CPUCapFlags&CPU_CAP_SSE)) WARN("SSE performs best with multiple of 4 update sizes (%u)\n", device->UpdateSize); + if((CPUCapFlags&CPU_CAP_NEON)) + WARN("NEON performs best with multiple of 4 update sizes (%u)\n", device->UpdateSize); } SetMixerFPUMode(&oldMode); |