audiorsample: Fix build on 32-bit x86

Turns out _mm_cvtsi128_si64() isn't available on 32-bit, so only build
SSE 4.1 optimisations on x86-64 for now.
This commit is contained in:
Arun Raghavan 2016-09-29 19:45:16 +05:30 committed by Arun Raghavan
parent 4b5f78337a
commit a1ae17ef69
2 changed files with 7 additions and 2 deletions

View file

@ -28,7 +28,10 @@
#pragma GCC target("sse4.1")
#endif
#if defined (HAVE_SMMINTRIN_H) && defined (HAVE_EMMINTRIN_H) && defined(__SSE4_1__)
#if defined (__x86_64__) && \
defined (HAVE_SMMINTRIN_H) && defined (HAVE_EMMINTRIN_H) && \
defined (__SSE4_1__)
#include <emmintrin.h>
#include <smmintrin.h>

View file

@ -57,7 +57,9 @@ audio_resampler_check_x86 (const gchar *option)
GST_DEBUG ("SSE2 optimisations not enabled");
#endif
} else if (!strcmp (option, "sse41")) {
#if defined (HAVE_SMMINTRIN_H) && defined (HAVE_EMMINTRIN_H) && HAVE_SSE41
#if defined (__x86_64__) && \
defined (HAVE_SMMINTRIN_H) && defined (HAVE_EMMINTRIN_H) && \
HAVE_SSE41
GST_DEBUG ("enable SSE41 optimisations");
resample_gint32_full_1 = resample_gint32_full_1_sse41;
resample_gint32_linear_1 = resample_gint32_linear_1_sse41;