1 /*************************************************************************** 2 memcpy.h - prototype for optimized memcpy 3 ------------------- 4 begin : Tue Dec 07 2004 5 copyright : (C) 2004 by Thomas Eschenbacher 6 email : Thomas Eschenbacher <thomas.eschenbacher@gmx.de> 7 ***************************************************************************/ 8 9 /*************************************************************************** 10 * * 11 * This program is free software; you can redistribute it and/or modify * 12 * it under the terms of the GNU General Public License as published by * 13 * the Free Software Foundation; either version 2 of the License, or * 14 * (at your option) any later version. * 15 * * 16 ***************************************************************************/ 17 #ifndef MEMCPY_H 18 #define MEMCPY_H 19 20 #include "config.h" 21 22 #ifdef WITH_OPTIMIZED_MEMCPY 23 24 #include <stdlib.h> /* for size_t */ 25 26 /** use optimized memcpy() from xine */ 27 #define MEMCPY xine_fast_memcpy 28 29 /* forward declaration to libkwave/memcpy.c */ 30 extern "C" void *(* xine_fast_memcpy)(void *to, const void *from, size_t len); 31 32 #else /* WITH_OPTIMIZED_MEMCPY */ 33 34 #include <string.h> /* for memcpy from libc */ 35 36 /** use standard memcpy() from libc */ 37 #define MEMCPY memcpy 38 39 #endif /* WITH_OPTIMIZED_MEMCPY */ 40 41 #endif /* MEMCPY_H */ 42 43 //*************************************************************************** 44 //*************************************************************************** 45