00001 /*************************************************************************** 00002 util.h - Utility functions 00003 ------------------- 00004 begin : Tue May 14 2002 00005 copyright : (C) 2002 by David Holm 00006 email : david@realityrift.com 00007 *************************************************************************** 00008 00009 The contents of this file are subject to the Mozilla Public License Version 00010 1.1 (the "License"); you may not use this file except in compliance with 00011 the License. You may obtain a copy of the License at 00012 http://www.mozilla.org/MPL/ 00013 00014 Software distributed under the License is distributed on an "AS IS" basis, 00015 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 00016 for the specific language governing rights and limitations under the 00017 License. 00018 00019 The Original Code is the NeoEngine, util.h 00020 00021 The Initial Developer of the Original Code is David Holm. 00022 Portions created by David Holm are Copyright (C) 2002 00023 David Holm. All Rights Reserved. 00024 00025 ***************************************************************************/ 00026 00027 #ifndef __NEUTIL_H 00028 #define __NEUTIL_H 00029 00030 00031 #include "base.h" 00032 00033 00034 #if defined(POSIX) || defined(__APPLE__) 00035 # include <unistd.h> 00036 #endif 00037 00038 #ifdef __cplusplus 00039 extern "C" 00040 { 00041 #endif 00042 00049 extern NEOENGINE_API void* (*fmemcpy)( void *pDest, const void *pSrc, size_t nBytes ); 00050 #ifdef __cplusplus 00051 } 00052 #endif 00053 00054 #ifdef ARCH_X86 00055 void *memcpy_sse( void *dst, const void *src, size_t len ); 00056 #endif /* ARCH_X86 */ 00057 00058 #endif /* __NEUTIL_H */