/************************************************************************* $Archive: /PACS/OnBoard/V_Macro.h $ $Revision: 1.11 $ $Date: 2009/04/23 13:51:12 $ $Author: amazy $ $Log: V_Macro.h,v $ Revision 1.11 2009/04/23 13:51:12 amazy 6.029 * * 3 3/14/06 4:32p Pacs Egse * Version 6.001 * Cleaned and commented *************************************************************************/ #define V_MACRO_H #ifdef CSL_SHOW_INCLUDE #pragma message( "Including " __FILE__ ) #endif /* Memcpy and sizeof don't take the same argument under virtuoso and windows. That's why we need to replace them by a Macro to map the function call to the appropriate function. */ #ifdef SIMULATOR // on windows #define MEMCPY(dest, src, sizeInWords) memcpy(dest, src, (sizeInWords)*4) #define SIZEOF(var) (sizeof(var)/4) #else // under virtuoso #define MEMCPY(dest, src, sizeInWords) memcpy(dest, src, sizeInWords) #define SIZEOF(var) sizeof(var) #endif