diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-04 13:26:39 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-04 13:26:39 +0000 |
commit | feb5575abd810ae0a21de9c3f8dd3033cd4cf573 (patch) | |
tree | 6d5ad6a9f08760fa755d0a5ed6942e9cb11386d9 /src/post/goom/ifs_display.c | |
parent | cb5b42cecdedada4b3b00411ee6fc02facd11728 (diff) | |
download | xine-lib-feb5575abd810ae0a21de9c3f8dd3033cd4cf573.tar.gz xine-lib-feb5575abd810ae0a21de9c3f8dd3033cd4cf573.tar.bz2 |
really really bad coding.
that thing worked by luck, i guess. assuming a parameter to be
on a specific stack position is absolutely non-portable and bad programing
pratice. putting emms inside the loop? someone must read a mmx manual.
CVS patchset: 3770
CVS date: 2003/01/04 13:26:39
Diffstat (limited to 'src/post/goom/ifs_display.c')
-rw-r--r-- | src/post/goom/ifs_display.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/post/goom/ifs_display.c b/src/post/goom/ifs_display.c index 657a74063..53530ccf6 100644 --- a/src/post/goom/ifs_display.c +++ b/src/post/goom/ifs_display.c @@ -18,25 +18,12 @@ ifs_fun_mmx(guint32 * data, guint32 * back, int width, int height, if ((x < width) && (y < height) && (x > 0) && (y > 0)) { int pos = x + (y * width); -/* register int b asm ("eax"); - - b = back[pos]; - __asm__ - (" - movd %%eax, %%mm0 - movd %%edx, %%mm1 - paddusb %%mm1, %%mm0 - movd %%mm0, %%eax - ":: - "edx" (couleursl)); - data[pos] = b; -*/ movd_m2r(back[pos],mm0); paddusb_r2r(mm1,mm0); movd_r2m(mm0,data[pos]); } } - __asm__ __volatile__ ("emms"); + emms(); } #endif |