'-Ofast' and '-march=native' cause 2x-speedup in machines with SSE (but no AVX) instructions. Should help other platforms, too.

pull/252/head
Thanassis Tsiodras 3 years ago
parent 603f97ba11
commit 49b2f9bd66

@ -27,8 +27,8 @@ endif
# Compile flags # Compile flags
# #
CFLAGS = -I. -O3 -std=c11 -fPIC CFLAGS = -I. -O3 -std=c11 -fPIC -Ofast -march=native
CXXFLAGS = -I. -I./examples -O3 -std=c++11 -fPIC CXXFLAGS = -I. -I./examples -O3 -std=c++11 -fPIC -Ofast -march=native
LDFLAGS = LDFLAGS =
# OS specific # OS specific

Loading…
Cancel
Save