/*---------------------------------------------------------------------------* Project: Horizon File: nstd_Printf.h Copyright (C)2009 Nintendo Co., Ltd. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Rev: 15473 $ *--------------------------------------------------------------------------- */ #ifndef NN_NSTD_STRING_H_ #define NN_NSTD_STRING_H_ #include #include // TODO: C versions of symbol names do not include ARMv4/ARMv5 NN_EXTERN_C void nnnstdMemCpy(void *dstp, const void *srcp, size_t size); NN_EXTERN_C void nnnstdMemMove(void *dstp, const void *srcp, size_t size); #if defined(NN_PROCESSOR_ARM_V4) || defined(NN_PROCESSOR_ARM_V5) #define NN_NSTD_ARM_NS ARMv4 #elif defined(NN_PROCESSOR_ARM_V6) #define NN_NSTD_ARM_NS ARMv6 #else #error processor not selected #endif #ifdef __cplusplus namespace nn { namespace nstd { namespace NN_NSTD_ARM_NS { inline void MemCpy(void *dstp, const void *srcp, size_t size) { nnnstdMemCpy(dstp, srcp, size); } inline void MemMove(void *dstp, const void *srcp, size_t size) { nnnstdMemMove(dstp, srcp, size); } } using namespace NN_NSTD_ARM_NS; }} #endif #endif /* NN_NSTD_STRING_H_ */