mirror of
https://github.com/mpv-player/mpv
synced 2025-02-18 13:47:04 +00:00
dunno where to place it :(
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3093 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6f70d068ad
commit
f67f9bdcbe
17
memset.c
Normal file
17
memset.c
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#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
|
Loading…
Reference in New Issue
Block a user