annotate libvo/fastmemcpy.h @ 4681:8db59073127e

mem2agpcpy()
author michael
date Tue, 12 Feb 2002 23:17:14 +0000
parents 30e6a115a088
children 000ca7a19331
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
477
a1ceb65cf6ab add 3dnow support
pontscho
parents: 409
diff changeset
1 #ifndef __MPLAYER_MEMCPY
644
88eb1a3f7bfb Changed code, should be faster on Athlon/K6 but slower on PIII with SSE, more portable.
atmosfear
parents: 581
diff changeset
2 #define __MPLAYER_MEMCPY 1
88eb1a3f7bfb Changed code, should be faster on Athlon/K6 but slower on PIII with SSE, more portable.
atmosfear
parents: 581
diff changeset
3
1131
30e6a115a088 cosmetic changes and sse/sse included
al3x
parents: 800
diff changeset
4 #include "../config.h"
800
dc6cdb87229a USE_FASTMEMCPY bug fixed.
pontscho
parents: 698
diff changeset
5
1131
30e6a115a088 cosmetic changes and sse/sse included
al3x
parents: 800
diff changeset
6 #ifdef USE_FASTMEMCPY
30e6a115a088 cosmetic changes and sse/sse included
al3x
parents: 800
diff changeset
7 #if defined(HAVE_MMX) || defined(HAVE_MMX2) || defined(HAVE_3DNOW) \
30e6a115a088 cosmetic changes and sse/sse included
al3x
parents: 800
diff changeset
8 /* || defined(HAVE_SSE) || defined(HAVE_SSE2) */
644
88eb1a3f7bfb Changed code, should be faster on Athlon/K6 but slower on PIII with SSE, more portable.
atmosfear
parents: 581
diff changeset
9 #include <stddef.h>
477
a1ceb65cf6ab add 3dnow support
pontscho
parents: 409
diff changeset
10
698
f0fbf1a9bf31 Moving fast_memcpy to separate file (Size optimization)
nickols_k
parents: 685
diff changeset
11 extern void * fast_memcpy(void * to, const void * from, size_t len);
4681
8db59073127e mem2agpcpy()
michael
parents: 1131
diff changeset
12 extern void * mem2agpcpy(void * to, const void * from, size_t len);
376
63c47ec706cd P3 fixes...
arpi_esp
parents: 370
diff changeset
13 #define memcpy(a,b,c) fast_memcpy(a,b,c)
513
aec3cad1e41a replace "movsl..." to small_memcpy
pontscho
parents: 478
diff changeset
14
4681
8db59073127e mem2agpcpy()
michael
parents: 1131
diff changeset
15 #else /* HAVE_MMX/MMX2/3DNOW/SSE/SSE2 */
8db59073127e mem2agpcpy()
michael
parents: 1131
diff changeset
16 #define mem2agpcpy(a,b,c) memcpy(a,b,c)
478
9df257e7ef78 sorry, for the #endif
pontscho
parents: 477
diff changeset
17 #endif
4681
8db59073127e mem2agpcpy()
michael
parents: 1131
diff changeset
18
8db59073127e mem2agpcpy()
michael
parents: 1131
diff changeset
19 #else /* USE_FASTMEMCPY */
8db59073127e mem2agpcpy()
michael
parents: 1131
diff changeset
20 #define mem2agpcpy(a,b,c) memcpy(a,b,c)
8db59073127e mem2agpcpy()
michael
parents: 1131
diff changeset
21 #endif
8db59073127e mem2agpcpy()
michael
parents: 1131
diff changeset
22 #endif