1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-24 20:31:37 +00:00

__memcpy fix

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@371 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi_esp 2001-04-12 00:09:57 +00:00
parent 2602f0196f
commit 627806710a

View File

@ -8,7 +8,7 @@ If you have questions please contact with me: Nick Kurshev: nickols_k@mail.ru.
#ifndef HAVE_MMX2 #ifndef HAVE_MMX2
//static inline void * __memcpy(void * to, const void * from, unsigned n) //static inline void * __memcpy(void * to, const void * from, unsigned n)
inline static void * memcpy(void * to, const void * from, unsigned n) inline static void * fast_memcpy(void * to, const void * from, unsigned n)
{ {
int d0, d1, d2; int d0, d1, d2;
__asm__ __volatile__( __asm__ __volatile__(
@ -27,7 +27,7 @@ return (to);
} }
#else #else
//inline static void *__memcpy_mmx2(void *to, const void *from, unsigned len) //inline static void *__memcpy_mmx2(void *to, const void *from, unsigned len)
inline static void * memcpy(void * to, const void * from, unsigned len) inline static void * fast_memcpy(void * to, const void * from, unsigned len)
{ {
void *p; void *p;
int i; int i;
@ -91,8 +91,10 @@ inline static void * memcpy(void * to, const void * from, unsigned len)
/* /*
* Now do the tail of the block * Now do the tail of the block
*/ */
__memcpy(to, from, len&63); memcpy(to, from, len&63);
return p; return p;
} }
#endif #endif
#define memcpy(a,b,c) fast_memcpy(a,b,c)