Cleanup
This commit is contained in:
@@ -39,8 +39,8 @@ void init() {
|
||||
|
||||
void render_frame(double dt) {
|
||||
time += dt;
|
||||
double x = 0.5 + __builtin_cos(2.0 * PI / 10.0 * time) * 0.5;
|
||||
double y = 0.5 + __builtin_sin(2.0 * PI / 10.0 * time) * 0.5;
|
||||
double x = 0.5 + cos(2.0 * PI / 10.0 * time) * 0.5;
|
||||
double y = 0.5 + sin(2.0 * PI / 10.0 * time) * 0.5;
|
||||
pos.x = x * (WIDTH - SQ_SIZE);
|
||||
pos.y = y * (HEIGHT - SQ_SIZE);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "math.h"
|
||||
|
||||
// Definition of math functions needed for fdlibm
|
||||
inline double fabs(double x) { return __builtin_fabs(x); }
|
||||
inline double floor(double x) { return __builtin_floor(x); }
|
||||
inline double copysign(double x, double y) { return __builtin_copysign(x, y); }
|
||||
double fabs(double x) { return __builtin_fabs(x); }
|
||||
double floor(double x) { return __builtin_floor(x); }
|
||||
double copysign(double x, double y) { return __builtin_copysign(x, y); }
|
||||
|
||||
Reference in New Issue
Block a user