mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-08 08:10:30 -10:00
Use -ffast-math.
Helps SINC resampler to auto-vectorize.
This commit is contained in:
1 parent
960b091e59
commit
ff14092d8d
3 files changed
+4
-4
No files matched your search
@@ -310,7 +310,7 @@ ifneq ($(V),1)
|
||||
Q := @
|
||||
endif
|
||||
|
||||
OPTIMIZE_FLAG = -O3
|
||||
OPTIMIZE_FLAG = -O3 -ffast-math
|
||||
ifeq ($(DEBUG), 1)
|
||||
OPTIMIZE_FLAG = -O0
|
||||
endif
|
||||
|
||||
+2
-2
@@ -221,8 +221,8 @@ ifeq ($(DEBUG), 1)
|
||||
CFLAGS += -O0 -g
|
||||
CXXFLAGS += -O0 -g
|
||||
else
|
||||
CFLAGS += -O3
|
||||
CXXFLAGS += -O3
|
||||
CFLAGS += -O3 -ffast-math
|
||||
CXXFLAGS += -O3 -ffast-math
|
||||
LDCXXFLAGS += -s
|
||||
endif
|
||||
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ TESTS := test-hermite \
|
||||
test-sinc-highest \
|
||||
test-snr-sinc-highest
|
||||
|
||||
CFLAGS += -O3 -g -Wall -pedantic -march=native -std=gnu99 -DRESAMPLER_TEST
|
||||
CFLAGS += -O3 -ffast-math -g -Wall -pedantic -march=native -std=gnu99 -DRESAMPLER_TEST
|
||||
LDFLAGS += -lm
|
||||
|
||||
all: $(TESTS)
|
||||
|
||||
Reference in new issue
Block a user