view memset.c @ 3180:d53f70e3c794

spudec_new has a dvd_priv_t as an argument, which is defined in libmpdemux/stream.h only if USE_DVDREAD is defined. (Arpi)
author pl
date Wed, 28 Nov 2001 12:44:39 +0000
parents c442c6565922
children
line wrap: on
line source

#include "config.h"

#ifdef USE_FASTMEMSET
#if defined(HAVE_SSE) || defined(HAVE_SSE2)
/* (C) 2001 Csabai Csaba <csibi@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