benches, optimizations for sin and cos
This commit is contained in:
@@ -42,6 +42,7 @@ extern int plr_display_x11_main(int argc, char *argv[]) {
|
||||
com_fixed_print(v0.a[0]);
|
||||
|
||||
com_fixed_run_tests();
|
||||
com_fixed_run_bench();
|
||||
|
||||
Display *display = XOpenDisplay(NULL);
|
||||
if (NULL == display) {
|
||||
|
||||
+6
-3
@@ -1,8 +1,11 @@
|
||||
CC=clang
|
||||
CFLAGS=-lX11 -Wall -std=c99 -g3 -O3 -fno-inline -msse2 -lm
|
||||
DEPS = Display/display.h ../Common/lzw.h ../Common/mat.h ../Common/vec.h ../Common/fixed.h ../Common/def.h ../Common/bits.h
|
||||
# todo: Only link to libm on debug.
|
||||
CFLAGS=-lX11 -Wall -std=c99 -g3 -O3 -msse2 -lm
|
||||
DEPS = ../Common/lzw.h ../Common/mat.h ../Common/vec.h ../Common/fixed.h ../Common/def.h ../Common/bits.h \
|
||||
../Common/Timer/timer.h \
|
||||
./Display/display.h
|
||||
OBJ = ../Common/lzw.o ../Common/fixed.o
|
||||
LINUX = main.o Display/x11.o
|
||||
LINUX = main.o Display/x11.o ../Common/Timer/unix.o
|
||||
DOS = maindos.c Display/dos.c
|
||||
|
||||
%.o: %.c $(DEPS)
|
||||
|
||||
Reference in New Issue
Block a user