http://freej.dyne.org/codedoc/fastmemcpy_8h_source.html

00001 /*
00002    (c) Copyright 2000-2002  convergence integrated media GmbH.
00003    (c) Copyright 2002       convergence GmbH.
00004    
00005    All rights reserved.
00006 
00007    Written by Denis Oliver Kropp <[email protected]>,
00008               Andreas Hundt <[email protected]> and
00009               Sven Neumann <[email protected]>.
00010 
00011    This library is free software; you can redistribute it and/or
00012    modify it under the terms of the GNU Lesser General Public
00013    License as published by the Free Software Foundation; either
00014    version 2 of the License, or (at your option) any later version.
00015 
00016    This library is distributed in the hope that it will be useful,
00017    but WITHOUT ANY WARRANTY; without even the implied warranty of
00018    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019    Lesser General Public License for more details.
00020 
00021    You should have received a copy of the GNU Lesser General Public
00022    License along with this library; if not, write to the
00023    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00024    Boston, MA 02111-1307, USA.
00025 */
00026 
00027 #ifndef __MISC__MEMCPY_H__
00028 #define __MISC__MEMCPY_H__
00029 
00030 #include <stdlib.h>
00031 #include <string.h>
00032 
00033 #include <config.h>
00034 
00035 void find_best_memcpy();
00036 
00037 extern void *(*jmemcpy)( void *to, const void *from, size_t len );
00038 
00039 static inline void *jmemmove( void *to, const void *from, size_t len )
00040 {
00041   if (from > to  ||  ((const char*) from + len) < ((char*) to))
00042     return jmemcpy( to, from, len );
00043   
00044   return memmove( to, from, len );
00045 }
00046 
00047 #endif
00048 

你可能感兴趣的:(http://freej.dyne.org/codedoc/fastmemcpy_8h_source.html)