From c3cc5eb87891c06b636409342fd86e4d8893c549 Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Sun, 27 Apr 2008 01:45:21 -0700 Subject: Made sin/cos tables const. Made the sin/cos/arcsin/arccos tables const and removed the redundant externs that were scattered about. --- src/tables.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'src/tables.c') diff --git a/src/tables.c b/src/tables.c index f3f1efd..e83f114 100644 --- a/src/tables.c +++ b/src/tables.c @@ -10,13 +10,9 @@ */ -#if PSX - int sine[]={}; - int cosine[]={}; -#else int oneoversin[4096]; -int sine[]={ +const int sine[4096]={ 0, 100, @@ -4117,7 +4113,7 @@ int sine[]={ }; -int cosine[]={ +const int cosine[4096]={ 65536, 65535, @@ -8218,9 +8214,7 @@ int cosine[]={ }; -#endif - -short ArcCosTable[]={ +const short ArcCosTable[4096]={ 2047, 2027, @@ -12321,7 +12315,7 @@ short ArcCosTable[]={ }; -short ArcSineTable[]={ +const short ArcSineTable[4096]={ -1023, -1004, @@ -16422,7 +16416,7 @@ short ArcSineTable[]={ }; -short ArcTanTable[]={ +const short ArcTanTable[256]={ 0,2,5,7,10,12,15,17, 20,22,25,27,30,33,35,38, -- cgit v1.3