From 5e76cf2f6d7d245fa81279d5dfef3fe425dad4c1 Mon Sep 17 00:00:00 2001 From: Olli Date: Thu, 28 Jan 2021 21:26:38 +0200 Subject: [PATCH] Disable skipping of unaligned SIMD memory offset by default Change default setting so that SIMD does not skip of unaligned memory offsets, as that likely is not a necessary compromise with concurrent CPUs any more. --- include/STTypes.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/STTypes.h b/include/STTypes.h index 2426b7b..bfa0787 100644 --- a/include/STTypes.h +++ b/include/STTypes.h @@ -121,10 +121,10 @@ namespace soundtouch #endif - // If defined, allows the SIMD-optimized routines to take minor shortcuts - // for improved performance. Undefine to require faithfully similar SIMD - // calculations as in normal C implementation. - #define SOUNDTOUCH_ALLOW_NONEXACT_SIMD_OPTIMIZATION 1 + // If defined, allows the SIMD-optimized routines to skip unevenly aligned + // memory offsets that can cause performance penalty in some SIMD implementations. + // Causes slight compromise in sound quality. + // #define SOUNDTOUCH_ALLOW_NONEXACT_SIMD_OPTIMIZATION 1 #ifdef SOUNDTOUCH_INTEGER_SAMPLES