shithub: ft2-clone

Download patch

ref: 4a4a8b8338553c4c9284b136218bb40626b99686
parent: 27b82951aae8e6f2297baaf3393dab367b4853ba
author: Olav Sørensen <olav.sorensen@live.no>
date: Fri Jan 1 15:40:04 EST 2021

Rewrote a comment that was not correct (it lied to you!)

--- a/src/mixer/ft2_mix_macros.h
+++ b/src/mixer/ft2_mix_macros.h
@@ -131,7 +131,7 @@
 
 #define LINEAR_INTERPOLATION8(s, f) \
 { \
-	/* uint32_t -> int32_t so that we can use SIMD for fast int->double conversion */ \
+	/* uint32_t -> int32_t for less SIMD overhead when doing int->double conversion */ \
 	const int32_t frac = (uint32_t)(f) >> 1; /* (2^32)-1 -> (2^31)-1 */ \
 	\
 	const double dFrac = (double)(frac * (1.0 / (INT32_MAX+1.0))); /* 0.0 .. 0.999999999 */ \
@@ -140,7 +140,7 @@
 
 #define LINEAR_INTERPOLATION16(s, f) \
 { \
-	/* uint32_t -> int32_t so that we can use SIMD for fast int->double conversion */ \
+	/* uint32_t -> int32_t for less SIMD overhead when doing int->double conversion */ \
 	const int32_t frac = (uint32_t)(f) >> 1; /* (2^32)-1 -> (2^31)-1 */ \
 	\
 	const double dFrac = (double)(frac * (1.0 / (INT32_MAX+1.0))); /* 0.0 .. 0.999999999 */ \