From: John Tsiombikas Date: Mon, 17 May 2021 22:51:41 +0000 (+0300) Subject: forgot to change the cosine offset to match the 1024 lut size X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=retrobench;a=commitdiff_plain;h=b651991a8cb4cf8a1e64c66175f27091c805fdf6 forgot to change the cosine offset to match the 1024 lut size --- 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);