projects
/
retrobench
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drop floating point from the main loop
[retrobench]
/
src
/
util.h
diff --git
a/src/util.h
b/src/util.h
index
001aedc
..
9b04f0d
100644
(file)
--- a/
src/util.h
+++ b/
src/util.h
@@
-1,6
+1,11
@@
#ifndef UTIL_H_
#define UTIL_H_
+extern int sinlut[];
+
+#define SIN(x) sinlut[(x) & 0xff]
+#define COS(x) sinlut[((x) + 64) & 0xff]
+
int mask_to_shift(unsigned int mask);
#endif /* UTIL_H_ */