diff options
| author | Steven Fuller <relnev@icculus.org> | 2008-04-27 01:45:21 -0700 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:37 +0200 |
| commit | c3cc5eb87891c06b636409342fd86e4d8893c549 (patch) | |
| tree | ec3a39a8310ff0b11a4043a82689c2e9fc1cf515 /src/tables.c | |
| parent | d5830bb440f885878dc580e94a7364e4c5f6a044 (diff) | |
Made sin/cos tables const.
Made the sin/cos/arcsin/arccos tables const and removed the redundant
externs that were scattered about.
Diffstat (limited to 'src/tables.c')
| -rw-r--r-- | src/tables.c | 16 |
1 files changed, 5 insertions, 11 deletions
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, |
