Browse Source

AVX instructions support

pull/734/head
orignal 8 years ago
parent
commit
e08a26d015
  1. 7
      Makefile.linux

7
Makefile.linux

@ -60,7 +60,12 @@ ifeq ($(USE_AESNI),yes) @@ -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

Loading…
Cancel
Save