view memset.c @ 3206:588102344a68

DGA handling changed (Arpi's request) correct options: --enable-dga => auto (default) --enable-dga=1 or ...=2 --disable-dga changed --enable/disable-select handling to behave as the other tests
author pl
date Thu, 29 Nov 2001 18:56:08 +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