2016-07-15 12:15:57 +08:00
|
|
|
#for x86
|
|
|
|
HAVE_AVX2 := true
|
|
|
|
|
2014-02-25 23:48:35 +02:00
|
|
|
ifneq ($(filter %86 x86_64, $(ARCH)),)
|
2014-10-22 10:18:53 +03:00
|
|
|
include $(SRC_PATH)build/x86-common.mk
|
2016-07-15 12:15:57 +08:00
|
|
|
ifeq ($(USE_ASM), Yes)
|
|
|
|
ifeq ($(HAVE_AVX2), true)
|
|
|
|
CFLAGS += -DHAVE_AVX2
|
|
|
|
CXXFLAGS += -DHAVE_AVX2
|
|
|
|
ASMFLAGS += -DHAVE_AVX2
|
|
|
|
endif
|
|
|
|
endif
|
2014-02-25 23:48:35 +02:00
|
|
|
endif
|
2016-07-15 12:15:57 +08:00
|
|
|
|
|
|
|
#for arm
|
2014-02-26 15:00:35 +02:00
|
|
|
ifneq ($(filter-out arm64, $(filter arm%, $(ARCH))),)
|
|
|
|
ifeq ($(USE_ASM), Yes)
|
|
|
|
ASM_ARCH = arm
|
2014-01-29 10:31:09 +02:00
|
|
|
ASMFLAGS += -I$(SRC_PATH)codec/common/arm/
|
2014-02-26 15:00:35 +02:00
|
|
|
CFLAGS += -DHAVE_NEON
|
|
|
|
endif
|
|
|
|
endif
|
2016-07-15 12:15:57 +08:00
|
|
|
|
|
|
|
#for arm64
|
2014-04-23 10:53:39 +03:00
|
|
|
ifneq ($(filter arm64 aarch64, $(ARCH)),)
|
|
|
|
ifeq ($(USE_ASM), Yes)
|
|
|
|
ASM_ARCH = arm64
|
2014-01-29 10:31:09 +02:00
|
|
|
ASMFLAGS += -I$(SRC_PATH)codec/common/arm64/
|
2014-04-23 10:53:39 +03:00
|
|
|
CFLAGS += -DHAVE_NEON_AARCH64
|
|
|
|
endif
|
|
|
|
endif
|