diff libmpcodecs/vf_ilpack.c @ 29639:26a355ffe458

Add several HAVE_EBX_AVAILABLE conditions where necessary
author reimar
date Mon, 14 Sep 2009 14:47:56 +0000
parents 0f1b5b68af32
children bbb6ebec87a0
line wrap: on
line diff
--- a/libmpcodecs/vf_ilpack.c	Mon Sep 14 13:16:35 2009 +0000
+++ b/libmpcodecs/vf_ilpack.c	Mon Sep 14 14:47:56 2009 +0000
@@ -88,6 +88,7 @@
 	pack_nn_C(dst, y, u, v, (w&7));
 }
 
+#if HAVE_EBX_AVAILABLE
 static void pack_li_0_MMX(unsigned char *dst, unsigned char *y,
 	unsigned char *u, unsigned char *v, int w, int us, int vs)
 {
@@ -307,6 +308,7 @@
 		);
 	pack_li_1_C(dst, y, u, v, (w&15), us, vs);
 }
+#endif /* HAVE_EBX_AVAILABLE */
 #endif
 
 static pack_func_t *pack_nn;
@@ -399,8 +401,10 @@
 #if HAVE_MMX
 	if(gCpuCaps.hasMMX) {
 		pack_nn = (pack_func_t *)pack_nn_MMX;
+#if HAVE_EBX_AVAILABLE
 		pack_li_0 = pack_li_0_MMX;
 		pack_li_1 = pack_li_1_MMX;
+#endif
 	}
 #endif