mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-02-15 08:40:40 +00:00
Fast math flag replacement
This commit is contained in:
parent
56d1334007
commit
7be9731347
1 changed files with 4 additions and 1 deletions
5
Makefile
5
Makefile
|
@ -442,8 +442,11 @@ ifeq ($(PLATFORM),android)
|
||||||
-fno-builtin-cos -fno-builtin-sin -fPIC -DARCH_STRING=\\\"$(ARCH)\\\"
|
-fno-builtin-cos -fno-builtin-sin -fPIC -DARCH_STRING=\\\"$(ARCH)\\\"
|
||||||
CLIENT_CFLAGS += $(SDL_CFLAGS) -DSDL_DISABLE_IMMINTRIN_H -fno-builtin-cos -fno-builtin-sin
|
CLIENT_CFLAGS += $(SDL_CFLAGS) -DSDL_DISABLE_IMMINTRIN_H -fno-builtin-cos -fno-builtin-sin
|
||||||
|
|
||||||
|
# Flag -ffast-math replacement: https://pspdfkit.com/blog/2021/understanding-fast-math/
|
||||||
|
# Flags -ffp-contract=fast -fno-trapping-math are unused because they are causing lightmap issues
|
||||||
|
OPTIMIZEFASTMATH = -ffinite-math-only -fno-math-errno -fassociative-math -freciprocal-math -fno-signed-zeros
|
||||||
OPTIMIZEVM = -O3 -funroll-loops -fomit-frame-pointer
|
OPTIMIZEVM = -O3 -funroll-loops -fomit-frame-pointer
|
||||||
OPTIMIZE = $(OPTIMIZEVM)
|
OPTIMIZE = $(OPTIMIZEVM) $(OPTIMIZEFASTMATH)
|
||||||
|
|
||||||
HAVE_VM_COMPILED = false
|
HAVE_VM_COMPILED = false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue