ft2-clone

Fasttracker 2 clone
Log | Files | Refs | README | LICENSE

commit 4a4a8b8338553c4c9284b136218bb40626b99686
parent 27b82951aae8e6f2297baaf3393dab367b4853ba
Author: Olav Sørensen <olav.sorensen@live.no>
Date:   Fri,  1 Jan 2021 20:39:37 +0100

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

Diffstat:
Msrc/mixer/ft2_mix_macros.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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 */ \