projects
/
retrobench
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improved the xor effect slightly
[retrobench]
/
src
/
util.h
diff --git
a/src/util.h
b/src/util.h
index
69d9d1e
..
633ccbf
100644
(file)
--- a/
src/util.h
+++ b/
src/util.h
@@
-35,10
+35,10
@@
typedef unsigned long intptr_t;
((x) << 24))
((x) << 24))
-extern int sinlut[];
+extern short sinlut[];
-#define SIN(x) sinlut[(x) & 0x3ff]
-#define COS(x) sinlut[((x) + 256) & 0x3ff]
+#define SIN(x) (int)sinlut[(x) & 0x7ff]
+#define COS(x) (int)sinlut[((x) + 512) & 0x7ff]
int mask_to_shift(unsigned int mask);
int mask_to_shift(unsigned int mask);