projects
/
retrobench
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
forgot to change the cosine offset to match the 1024 lut size
[retrobench]
/
src
/
util.h
diff --git
a/src/util.h
b/src/util.h
index
6880649
..
d1f81eb
100644
(file)
--- 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);