From: Arun Raghavan Date: Thu, 29 Sep 2016 14:15:16 +0000 (+0530) Subject: audiorsample: Fix build on 32-bit x86 X-Git-Tag: 1.19.3~511^2~2656 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1ae17ef69251f33e427bd96dbefa6ac5e723059;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/gst-libs/gst/audio/audio-resampler-x86-sse41.c b/gst-libs/gst/audio/audio-resampler-x86-sse41.c index cf3d818..ce1cc24 100644 --- a/gst-libs/gst/audio/audio-resampler-x86-sse41.c +++ b/gst-libs/gst/audio/audio-resampler-x86-sse41.c @@ -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 #include diff --git a/gst-libs/gst/audio/audio-resampler-x86.h b/gst-libs/gst/audio/audio-resampler-x86.h index 8e2bed3..47bc430 100644 --- a/gst-libs/gst/audio/audio-resampler-x86.h +++ b/gst-libs/gst/audio/audio-resampler-x86.h @@ -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;