[Mplayer-cvslog] CVS: main memset.c,NONE,1.1

Alex Beregszaszi alex at mplayer.dev.hu
Fri Nov 23 21:43:23 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv8762

Added Files:
	memset.c 
Log Message:
dunno where to place it :(

--- NEW FILE ---
#include "config.h"

#ifdef USE_FASTMEMSET
#if defined(HAVE_SSE) || defined(HAVE_SSE2)
/* (C) 2001 Csabai Csaba <csibi at diablo.ovinet.hu> */
inline void *fast_memset(void *ptr, long val, long num) 
{
    __asm__ __volatile__(
	"cmpxchg8 (%2)"
	: "=a" (val), "=d" (num)
	: "r" (ptr), "0" (val), "1" (num)
	:"memory");

    return(ptr);
}
#endif
#endif




More information about the MPlayer-cvslog mailing list