Loading...
Searching...
No Matches
Go to the documentation of this file.
33static const unsigned int DC_2PI = 2048;
34static const unsigned int DC_PI = 1024;
35static const unsigned int DC_PI2 = 512;
36static const unsigned int DC_PI4 = 256;
38static inline int32_t dCos(
unsigned int t) {
44 }
else if (
t < DC_PI) {
46 }
else if (
t < (DC_PI + DC_PI2)) {
56static inline int32_t dSin(
unsigned int t) {
59 if (
t < DC_PI2)
return dCos(
t + DC_2PI - DC_PI2);
60 return dCos(
t - DC_PI2);
uint32_t t
Definition cop0.c:79
uint32_t r
Definition cpu.c:222
int32_t g_cosTable[512]
Definition dcos.c:32
void generateCosTable()
Definition dcos.c:34