mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
makefile.unix: add rudimentary avx2 support
$ make -f makefile.unix HAVE_AVX2=1 will define -mavx2 for src/dsp/*_dsp.c Change-Id: Id9651bda54da057cb051dc70f7dcd008a3f803f4
This commit is contained in:
parent
515e35cfb1
commit
7c004287af
@ -69,6 +69,11 @@ EXTRA_FLAGS += -Wdeclaration-after-statement
|
||||
EXTRA_FLAGS += -Wshadow
|
||||
# EXTRA_FLAGS += -Wvla
|
||||
|
||||
# AVX2-specific flags:
|
||||
ifeq ($(HAVE_AVX2), 1)
|
||||
src/dsp/%_avx2.o: EXTRA_FLAGS += -mavx2
|
||||
endif
|
||||
|
||||
# NEON-specific flags:
|
||||
# EXTRA_FLAGS += -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8
|
||||
# -> seems to make the overall lib slower: -fno-split-wide-types
|
||||
|
Loading…
Reference in New Issue
Block a user