From 49b2f9bd66d99d728cc1e15d671918b8bf69ffbf Mon Sep 17 00:00:00 2001 From: Thanassis Tsiodras Date: Sat, 10 Dec 2022 12:56:43 +0100 Subject: [PATCH] '-Ofast' and '-march=native' cause 2x-speedup in machines with SSE (but no AVX) instructions. Should help other platforms, too. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 06fa3f2..f2bf51f 100644 --- a/Makefile +++ b/Makefile @@ -27,8 +27,8 @@ endif # Compile flags # -CFLAGS = -I. -O3 -std=c11 -fPIC -CXXFLAGS = -I. -I./examples -O3 -std=c++11 -fPIC +CFLAGS = -I. -O3 -std=c11 -fPIC -Ofast -march=native +CXXFLAGS = -I. -I./examples -O3 -std=c++11 -fPIC -Ofast -march=native LDFLAGS = # OS specific