1 #ifndef _FAST_COPY_H__ 2 #define _FAST_COPY_H__ 3 #include <stdlib.h> 4 5 #ifndef FAST_COPY_MEMCPY_THRESHOLD 6 # define FAST_COPY_MEMCPY_THRESHOLD ((size_t)1ull << 20) 7 #endif 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 #ifdef FHT_HEADER_ONLY 13 #include "fast_copy.c" 14 #else 15 void *fast_copy(void *out, void *in, size_t m); 16 #endif 17 #ifdef __cplusplus 18 } // extern "C" 19 #endif 20 21 #endif // _FAST_COPY_H__ 22