benches, optimizations for sin and cos

This commit is contained in:
veclavtlica
2026-09-13 17:59:20 +03:00
parent 6d7fe7392a
commit 739237575a
8 changed files with 218 additions and 65 deletions
+1
View File
@@ -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
View File
@@ -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)