From e08a26d0156215c22f2752536d6ae3d650b6a2dc Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 8 Dec 2016 12:59:19 -0500 Subject: [PATCH] AVX instructions support --- Makefile.linux | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.linux b/Makefile.linux index 8def8299..6d4762b1 100644 --- a/Makefile.linux +++ b/Makefile.linux @@ -60,7 +60,12 @@ ifeq ($(USE_AESNI),yes) ifeq ($(IS_64),1) #check if AES-NI is supported by CPU ifneq ($(shell $(GREP) -c aes /proc/cpuinfo),0) - CPU_FLAGS = -maes -DAESNI + CPU_FLAGS += -maes -DAESNI endif endif endif + +#check if AVX supported by CPU +ifneq ($(shell $(GREP) -c avx /proc/cpuinfo),0) + CPU_FLAGS += -mavx +endif