aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-01-26 01:34:39 -0800
committerChris Robinson <[email protected]>2014-01-26 01:34:39 -0800
commita4bc0a46e9e0fe001d4c14909b47ed4ac8d81960 (patch)
treea0ba33c23b3ceeb36e44f3d0212091398da6bcf3 /Alc/ALc.c
parent49baa9128dd98e986639def4f24c7522d9ec6b56 (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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index fea0320d..7d8f14cd 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -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);