diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-07-21 14:38:29 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2004-07-21 14:38:29 +0000 |
commit | 2e73a5e69f0227f15c6049ef805a9b8c20166e2b (patch) | |
tree | a76597e387b3748bb06290e7980e432711d72670 /src/post/goom/xmmx.c | |
parent | 5ef0b5f10d0ee154a8add83c7c19d8557898226f (diff) | |
download | xine-lib-2e73a5e69f0227f15c6049ef805a9b8c20166e2b.tar.gz xine-lib-2e73a5e69f0227f15c6049ef805a9b8c20166e2b.tar.bz2 |
new goom2k4-dev18 includes almost all of my warning fixes
(the goom team is quite fast in applying my patches :) )
some files are still slightly patched from the release version, but I will
get this sorted out so we will soon use a completely unmodified version
of goom
it compiles almost warningless now (the remaining warnings are introduced by
lex/yacc and I plan to simply ignore them)
the Makefile.am distclean-hack is also obsolete now, since the offending
files have been renamed
CVS patchset: 6828
CVS date: 2004/07/21 14:38:29
Diffstat (limited to 'src/post/goom/xmmx.c')
-rw-r--r-- | src/post/goom/xmmx.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/post/goom/xmmx.c b/src/post/goom/xmmx.c index 87589e863..a5d57b395 100644 --- a/src/post/goom/xmmx.c +++ b/src/post/goom/xmmx.c @@ -1,6 +1,9 @@ /* a definir pour avoir exactement le meme resultat que la fonction C * (un chouillat plus lent) */ + +#ifdef HAVE_MMX + #define STRICT_COMPAT //#define HAVE_ATHLON @@ -21,12 +24,12 @@ /*#include "xmmx.h"*/ #include "goom_graphic.h" -int xmmx_supported () { +int xmmx_supported (void) { return (mm_support()&0x8)>>3; } void zoom_filter_xmmx (int prevX, int prevY, - unsigned int *expix1, unsigned int *expix2, + Pixel *expix1, Pixel *expix2, int *lbruS, int *lbruD, int buffratio, int precalCoef[16][16]) { @@ -40,7 +43,7 @@ void zoom_filter_xmmx (int prevX, int prevY, volatile mmx_t ratiox; /* volatile mmx_t interpix; */ - expix1[0]=expix1[prevX-1]=expix1[prevX*prevY-1]=expix1[prevX*prevY-prevX]=0; + expix1[0].val=expix1[prevX-1].val=expix1[prevX*prevY-1].val=expix1[prevX*prevY-prevX].val=0; prevXY.ud[0] = (prevX-1)<<PERTEDEC; prevXY.ud[1] = (prevY-1)<<PERTEDEC; @@ -393,3 +396,4 @@ end_of_line: __asm__ __volatile__ ("femms\n"); } +#endif |