A WHOLE 1.5 FPS!!

This commit is contained in:
Amrit Panesar committed 2016-10-25 23:10:29 -07:00
1 parent 5567984cad
commit 9f6f0399e7
6 files changed
+24 -30

No files matched your search

-14
View File
@@ -40,20 +40,6 @@ void setColor(volatile unsigned char* fb, colour_t pixel, long x, long y, long p
}
}
double sin(double x)
{
double x2 = x * x;
if (x < PI)
return (((((-0.0000000205342856289746600727*x2 + 0.00000270405218307799040084)*x2 - 0.000198125763417806681909)*x2 + 0.00833255814755188010464)*x2 - 0.166665772196961623983)*x2 + 0.999999707044156546685)*x;
else if (x <= PI * 2) return (-sin(x - PI));
while (x > PI * 2)
x -= PI * 2;
return sin(x);
}