AESNI for x86

This commit is contained in:
orignal 2017-03-25 08:16:56 -04:00
parent d9b79f47c8
commit 9aa9a62ed4

View File

@ -55,15 +55,12 @@ else
endif
endif
IS_64 := $(shell $(CXX) -dumpmachine 2>&1 | $(GREP) -c "64")
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
endif
endif
endif
ifeq ($(USE_AVX),yes)
#check if AVX supported by CPU