/*---------------------------------------------------------------------------* Copyright (C) Nintendo. 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. *---------------------------------------------------------------------------*/ // ----------------------------------------------------------------------------- // demoCommon.h // // ----------------------------------------------------------------------------- #ifndef __DEMO_COMMON_H__ #define __DEMO_COMMON_H__ #include #include #include #include #include #include #ifdef __cplusplus extern "C" { #endif /// @addtogroup demoCommon /// @{ // These types should be defined by SDK #define DEMO_INLINE static inline #define DEMOAssert(expr) ASSERT(expr) #define DEMORoundUp256B(x) (((u32)(x) + 256 - 1) & ~(256 - 1)) #define DEMORoundUp32B(x) (((u32)(x) + 32 - 1) & ~(32 - 1)) #define DEMORoundUp4B(x) (((u32)(x) + 4 - 1) & ~(4 - 1)) #define DEMORoundUpForIO(x) (((u32)(x) + PPC_IO_BUFFER_ALIGN - 1) & ~(PPC_IO_BUFFER_ALIGN - 1)) /// @} #ifdef __cplusplus } #endif #endif /// __DEMO_COMMON_H__