# HG changeset patch # User alex # Date 1006548195 0 # Node ID c442c65659221c4501db7c8c0de2e93f37da256e # Parent a98d486508db7b5e01f470fc174439ff32499065 dunno where to place it :( diff -r a98d486508db -r c442c6565922 memset.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/memset.c Fri Nov 23 20:43:15 2001 +0000 @@ -0,0 +1,17 @@ +#include "config.h" + +#ifdef USE_FASTMEMSET +#if defined(HAVE_SSE) || defined(HAVE_SSE2) +/* (C) 2001 Csabai Csaba */ +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