summaryrefslogtreecommitdiffstats
path: root/gst/goom
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2008-02-25 12:03:46 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2008-02-25 12:03:46 +0000
commitbf2fdcbb2920bd73726d905648848ee58e451095 (patch)
tree2f0d612f6d1aa9afa3a77b68659e49bb20613671 /gst/goom
parent58a68b1823c7f6c0f995775034fb2b31e2929c12 (diff)
gst/goom/xmmx.c: Use 'emms' instead of 'femms' to not crash on cpus that do not implement this 3dnow specific instruc...
Original commit message from CVS: * gst/goom/xmmx.c: Use 'emms' instead of 'femms' to not crash on cpus that do not implement this 3dnow specific instruction.
Diffstat (limited to 'gst/goom')
-rw-r--r--gst/goom/xmmx.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/gst/goom/xmmx.c b/gst/goom/xmmx.c
index 40f27fbc..a9e9dfb7 100644
--- a/gst/goom/xmmx.c
+++ b/gst/goom/xmmx.c
@@ -170,8 +170,8 @@ zoom_filter_xmmx (int prevX, int prevY,
movq_r2r (mm3, mm5); /* c2-c2-c2-c2-c1-c1-c1-c1 */
/*^en parrallele^ *//* depackage du 2ieme pixel */
- /*^ */ punpckhbw_r2r (mm7, mm1);
- /* 00-b1-00-v1-00-r1-00-a1 */
+ /*^ */ punpckhbw_r2r (mm7, mm1);
+ /* 00-b1-00-v1-00-r1-00-a1 */
punpcklbw_r2r (mm7, mm5); /* 00-c1-00-c1-00-c1-00-c1 */
punpckhbw_r2r (mm7, mm3); /* 00-c2-00-c2-00-c2-00-c2 */
@@ -197,7 +197,7 @@ zoom_filter_xmmx (int prevX, int prevY,
pmullw_r2r (mm4, mm1);
pmullw_r2r (mm5, mm2);
- /* ajout des valeurs obtenues à la valeur finale */
+ /* ajout des valeurs obtenues � la valeur finale */
paddw_r2r (mm1, mm0);
paddw_r2r (mm2, mm0);
@@ -209,7 +209,8 @@ zoom_filter_xmmx (int prevX, int prevY,
++loop;
}
- __asm__ __volatile__ ("femms\n");
+ /* this was femms, which is AMD 3dnow */
+ __asm__ __volatile__ ("emms\n");
}
#define DRAWMETHOD_PLUS_XMMX(_out,_backbuf,_col) \
@@ -358,7 +359,8 @@ draw_line_xmmx (Pixel * data, int x1, int y1, int x2, int y2, int col,
}
}
end_of_line:
- __asm__ __volatile__ ("femms\n");
+ /* this was femms, which is AMD 3dnow */
+ __asm__ __volatile__ ("emms\n");
}
#endif