encoding SSE4.1 stub for StoreHistogram + Quantize + SSE_16xN

Visible speed-up, thanks to pshufb and pabsw and psignw use.

had to tweak configure.ac to make "smmintri.h" presence correctly
detected (we need to set the CPPFLAGS instead of the CFLAGS!)

Change-Id: I2ab99e16a27a64fdf1f09b2b4e30a5e74ccca080
This commit is contained in:
Pascal Massimino
2015-03-25 12:12:44 +01:00
committed by James Zern
parent c64659e1b4
commit 94055503e3
7 changed files with 283 additions and 5 deletions

View File

@ -99,13 +99,13 @@ AC_SUBST([AVX2_FLAGS])
TEST_AND_ADD_CFLAGS([SSE41_FLAGS], [-msse4.1])
AS_IF([test -n "$SSE41_FLAGS"], [
SAVED_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $SSE41_FLAGS"
SAVED_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $SSE41_FLAGS"
AC_CHECK_HEADER([smmintrin.h],
[AC_DEFINE(WEBP_HAVE_SSE41, [1],
[Set to 1 if SSE4.1 is supported])],
[SSE41_FLAGS=""])
CFLAGS=$SAVED_CFLAGS])
CPPFLAGS=$SAVED_CPPFLAGS])
AC_SUBST([SSE41_FLAGS])
TEST_AND_ADD_CFLAGS([SSE2_FLAGS], [-msse2])