view memset.c @ 3161:950496933384

configure cleanups: a few typos a few reordering (C src / _blah=no / cc_check && _blah=yes) preliminary support to display a summary of enabled modules at the end of the run of ./configure (only AO & VO right now/check for _{a,v}omodules) cleanups of config.mak : X_LIBS gathered everything and whatever - no longer the case Makefile cleanups to match the ones done in config.mak NB: it still compiles here (but I'm pretty sure this will break on some systems :)
author pl
date Tue, 27 Nov 2001 17:58:29 +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