Skip to content

Commit

Permalink
move some files
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Jan 9, 2025
1 parent 9669120 commit 44ae746
Show file tree
Hide file tree
Showing 17 changed files with 321 additions and 1,266 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CVS

12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PYTHON?=python3
INC_DIR= -I../src -I./include
CFLAGS += $(INC_DIR) -O2 -DNDEBUG
INC_DIR= -I../src -I./include -I./test
CFLAGS += $(INC_DIR) -O2 -DNDEBUG -std=c++20 -mfma
CFLAGS_WARN=-Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith
CFLAGS+=$(CFLAGS_WARN)
LDFLAGS=-L lib -lfmath
Expand Down Expand Up @@ -32,16 +32,16 @@ src/fmath.asm: src/gen_fmath.py src/s_xbyak.py
$(PYTHON) $< -m masm > $@

LOG_L?=5
src/table.h: src/gen_fmath.py
test/table.h: src/gen_fmath.py
$(PYTHON) $< -t $(LOG_L) > $@

update:
$(MAKE) src/fmath.S src/fmath.asm

obj/%.o: %.cpp include/fmath.h
obj/%.o: %.cpp include/fmath.h test/table.h
$(CXX) -c -o $@ $< $(CFLAGS) -MMD -MP -MF $(@:.o=.d)

obj/cpu.o: cpu.cpp include/fmath.h src/table.h
obj/cpu.o: cpu.cpp include/fmath.h
$(CXX) -c -o $@ $< $(CFLAGS) -MMD -MP -MF $(@:.o=.d) -fno-exceptions -fno-rtti -fno-threadsafe-statics #-fvisibility=hidden

bin/%.exe: obj/%.o $(LIB)
Expand Down Expand Up @@ -94,7 +94,7 @@ log_unroll: obj/log_v.o
@sh -ec 'for i in 1 2 3 4 5; do echo LOG_UN=$$i; make -s log_unroll_n LOG_UN=$$i; done'

clean:
$(RM) obj/*.o $(TARGET) bin/*.exe src/*.S
$(RM) obj/*.o obj/*.d $(TARGET) bin/*.exe src/*.S

test: bin/exp_v.exe bin/log_v.exe
bin/exp_v.exe
Expand Down
28 changes: 0 additions & 28 deletions bench.sln

This file was deleted.

Loading

0 comments on commit 44ae746

Please sign in to comment.