X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Futil.h;h=688064949c7e05abab728f1a6c2a8cb7797ce348;hb=3ac76817d27b4ffc90f04a97c8714afb165eebc2;hp=9f0eb4ddde62233c786cbfd429915b8dbdf61f8d;hpb=7bebf23b6be952edf8ef13e4802f87004792116a;p=retrobench diff --git a/src/util.h b/src/util.h index 9f0eb4d..6880649 100644 --- a/src/util.h +++ b/src/util.h @@ -14,8 +14,8 @@ typedef unsigned int uint32_t; extern int sinlut[]; -#define SIN(x) sinlut[(x) & 0xff] -#define COS(x) sinlut[((x) + 64) & 0xff] +#define SIN(x) sinlut[(x) & 0x3ff] +#define COS(x) sinlut[((x) + 512) & 0x3ff] int mask_to_shift(unsigned int mask);