CFLAGS += -mavx2
endif
else ifeq ($(UNAME_S),Linux)
- AVX1_M := $(shell grep "avx " /proc/cpuinfo)
- ifneq (,$(findstring avx,$(AVX1_M)))
- CFLAGS += -mavx
- endif
AVX2_M := $(shell grep "avx2 " /proc/cpuinfo)
ifneq (,$(findstring avx2,$(AVX2_M)))
CFLAGS += -mavx2
F16C_M := $(shell grep "f16c " /proc/cpuinfo)
ifneq (,$(findstring f16c,$(F16C_M)))
CFLAGS += -mf16c
+
+ AVX1_M := $(shell grep "avx " /proc/cpuinfo)
+ ifneq (,$(findstring avx,$(AVX1_M)))
+ CFLAGS += -mavx
+ endif
endif
SSE3_M := $(shell grep "sse3 " /proc/cpuinfo)
ifneq (,$(findstring sse3,$(SSE3_M)))
CFLAGS += -msse3
endif
else ifeq ($(UNAME_S),Haiku)
- AVX1_M := $(shell sysinfo -cpu | grep "AVX ")
- ifneq (,$(findstring avx,$(AVX1_M)))
- CFLAGS += -mavx
- endif
AVX2_M := $(shell sysinfo -cpu | grep "AVX2 ")
ifneq (,$(findstring avx2,$(AVX2_M)))
CFLAGS += -mavx2
F16C_M := $(shell sysinfo -cpu | grep "F16C ")
ifneq (,$(findstring f16c,$(F16C_M)))
CFLAGS += -mf16c
+
+ AVX1_M := $(shell sysinfo -cpu | grep "AVX ")
+ ifneq (,$(findstring avx,$(AVX1_M)))
+ CFLAGS += -mavx
+ endif
endif
else
CFLAGS += -mfma -mf16c -mavx -mavx2