From b651991a8cb4cf8a1e64c66175f27091c805fdf6 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Tue, 18 May 2021 01:51:41 +0300 Subject: [PATCH] forgot to change the cosine offset to match the 1024 lut size --- src/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.h b/src/util.h index 6880649..d1f81eb 100644 --- a/src/util.h +++ b/src/util.h @@ -15,7 +15,7 @@ typedef unsigned int uint32_t; extern int sinlut[]; #define SIN(x) sinlut[(x) & 0x3ff] -#define COS(x) sinlut[((x) + 512) & 0x3ff] +#define COS(x) sinlut[((x) + 256) & 0x3ff] int mask_to_shift(unsigned int mask); -- 1.7.10.4