[MPlayer-cvslog] r30728 - trunk/libvo/fastmemcpy.h

Diego Biurrun diego at biurrun.de
Tue May 11 11:21:13 CEST 2010


On Tue, May 11, 2010 at 05:02:52AM -0400, Alexander Strange wrote:
> On Thu, Feb 25, 2010 at 9:20 AM, diego <subversion at mplayerhq.hu> wrote:
> >
> > Log:
> > Unconditionally declare fast_memcpy() and mem2agpcpy().
> > This fixes the following warnings on non-x86 systems:
> > libvo/aclib.c:162: warning: no previous prototype for 'fast_memcpy'
> > libvo/aclib.c:196: warning: no previous prototype for 'mem2agpcpy'
> 
> This broke compilation with --disable-fastmemcpy. I'll fix it tomorrow.
> 
> > --- trunk/libvo/fastmemcpy.h    Thu Feb 25 10:09:57 2010        (r30727)
> > +++ trunk/libvo/fastmemcpy.h    Thu Feb 25 14:20:56 2010        (r30728)
> > @@ -22,14 +22,12 @@
> >  #include "config.h"
> >  #include <inttypes.h>
> >  #include <string.h>
> > -
> > -#if defined(CONFIG_FASTMEMCPY) && (HAVE_MMX || HAVE_MMX2 || HAVE_AMD3DNOW /* || HAVE_SSE || HAVE_SSE2 */)
> >  #include <stddef.h>
> >
> >  void * fast_memcpy(void * to, const void * from, size_t len);
> >  void * mem2agpcpy(void * to, const void * from, size_t len);
> >
> > -#else
> > +#if ! defined(CONFIG_FASTMEMCPY) && ! (HAVE_MMX || HAVE_MMX2 || HAVE_AMD3DNOW /* || HAVE_SSE || HAVE_SSE2 */)
> >  #define mem2agpcpy(a,b,c) memcpy(a,b,c)
> >  #define fast_memcpy(a,b,c) memcpy(a,b,c)
> >  #endif

Hmm, yes, it's suspicious at a second glance.  I think I tested this
with --disable-fastmemcpy back then, but only on a PPC machine.

> --- libvo/fastmemcpy.h	(revision 31153)
> +++ libvo/fastmemcpy.h	(working copy)
> @@ -27,7 +27,7 @@
>  void * fast_memcpy(void * to, const void * from, size_t len);
>  void * mem2agpcpy(void * to, const void * from, size_t len);
>  
> -#if ! defined(CONFIG_FASTMEMCPY) && ! (HAVE_MMX || HAVE_MMX2 || HAVE_AMD3DNOW /* || HAVE_SSE || HAVE_SSE2 */)
> +#if ! defined(CONFIG_FASTMEMCPY) || ! (HAVE_MMX || HAVE_MMX2 || HAVE_AMD3DNOW /* || HAVE_SSE || HAVE_SSE2 */)
>  #define mem2agpcpy(a,b,c) memcpy(a,b,c)
>  #define fast_memcpy(a,b,c) memcpy(a,b,c)
>  #endif

Patch looks good, apply right away.

Diego


More information about the MPlayer-cvslog mailing list