mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 21:37:17 +01:00
AVX instructions support
This commit is contained in:
parent
381f6b184e
commit
e08a26d015
|
@ -60,7 +60,12 @@ ifeq ($(USE_AESNI),yes)
|
||||||
ifeq ($(IS_64),1)
|
ifeq ($(IS_64),1)
|
||||||
#check if AES-NI is supported by CPU
|
#check if AES-NI is supported by CPU
|
||||||
ifneq ($(shell $(GREP) -c aes /proc/cpuinfo),0)
|
ifneq ($(shell $(GREP) -c aes /proc/cpuinfo),0)
|
||||||
CPU_FLAGS = -maes -DAESNI
|
CPU_FLAGS += -maes -DAESNI
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#check if AVX supported by CPU
|
||||||
|
ifneq ($(shell $(GREP) -c avx /proc/cpuinfo),0)
|
||||||
|
CPU_FLAGS += -mavx
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in a new issue