fix breakage on i386 assumes SSE/SSE2 enabled by default, rather than
checking. Add checks for SSE/SSE2. ok ajc@
This commit is contained in:
parent
b4a0d33e96
commit
7ef78331d2
@ -0,0 +1,19 @@
|
||||
$OpenBSD: patch-gst_audioresample_resample_sse_h,v 1.1 2012/02/23 14:40:33 nigel Exp $
|
||||
--- gst/audioresample/resample_sse.h.orig Fri Dec 30 13:29:15 2011
|
||||
+++ gst/audioresample/resample_sse.h Wed Feb 22 20:06:10 2012
|
||||
@@ -34,6 +34,7 @@
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
+#ifdef _USE_SSE
|
||||
#ifdef HAVE_XMMINTRIN_H
|
||||
#include <xmmintrin.h>
|
||||
#endif
|
||||
@@ -72,6 +73,7 @@ static inline float interpolate_product_single(const f
|
||||
_mm_store_ss(&ret, sum);
|
||||
return ret;
|
||||
}
|
||||
+#endif
|
||||
|
||||
#ifdef _USE_SSE2
|
||||
#ifdef HAVE_EMMINTRIN_H
|
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-gst_audioresample_speex_resampler_double_c,v 1.1 2012/02/23 14:40:33 nigel Exp $
|
||||
--- gst/audioresample/speex_resampler_double.c.orig Fri Dec 30 13:29:15 2011
|
||||
+++ gst/audioresample/speex_resampler_double.c Wed Feb 22 20:06:10 2012
|
||||
@@ -17,7 +17,9 @@
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
+#ifdef __SSE2__
|
||||
#define _USE_SSE2
|
||||
+#endif
|
||||
#define FLOATING_POINT
|
||||
#define DOUBLE_PRECISION
|
||||
#define OUTSIDE_SPEEX
|
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-gst_audioresample_speex_resampler_float_c,v 1.1 2012/02/23 14:40:33 nigel Exp $
|
||||
--- gst/audioresample/speex_resampler_float.c.orig Fri Dec 30 13:29:15 2011
|
||||
+++ gst/audioresample/speex_resampler_float.c Wed Feb 22 20:06:10 2012
|
||||
@@ -17,8 +17,12 @@
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
+#ifdef __SSE__
|
||||
#define _USE_SSE
|
||||
+#endif
|
||||
+#ifdef __SSE2__
|
||||
#define _USE_SSE2
|
||||
+#endif
|
||||
#define FLOATING_POINT
|
||||
#define OUTSIDE_SPEEX
|
||||
#define RANDOM_PREFIX resample_float
|
Loading…
Reference in New Issue
Block a user