Add VCS links
[debian-dgen.git] / memcpy.h
blob21c2d274c534cc4f8fe16e54d328045fe15a6c0e
1 /* Header for optimized implementations of memcpy() */
3 #ifndef MEMCPY_H_
4 #define MEMCPY_H_
6 #ifdef __cplusplus
7 #include <cstring>
8 #define BEGIN_C_DECL extern "C" {
9 #define END_C_DECL }
10 #else
11 #include <string.h>
12 #define BEGIN_C_DECL
13 #define END_C_DECL
14 #endif
16 BEGIN_C_DECL
18 #if defined(WITH_X86_MMX)
20 #undef memcpy
21 #define memcpy(a, b, c) mmx_memcpy(a, b, c)
22 extern void mmx_memcpy(void *, void *, size_t);
24 #elif defined(WITH_X86_ASM)
26 #undef memcpy
27 #define memcpy(a, b, c) asm_memcpy(a, b, c)
28 extern void asm_memcpy(void *, void *, size_t);
30 #endif
32 END_C_DECL
34 #endif /* MEMCPY_H_ */