1 /*---------------------------------------------------------------------------*
2   Project:  TwlSDK - include
3   File:     code16.h
4 
5   Copyright 2003-2008 Nintendo.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Date:: 2008-09-17#$
14   $Rev: 8556 $
15   $Author: okubata_ryoma $
16  *---------------------------------------------------------------------------*/
17 #if	defined(SDK_CW) || defined(SDK_RX) || defined(__MWERKS__)
18 #pragma thumb on
19 #elif	defined(SDK_ADS)
20 TO BE   DEFINED
21 #elif	defined(SDK_GCC)
22 TO BE   DEFINED
23 #endif
24 // Prepare to switch the definition of FX_Mul
25 #ifdef FX_Mul
26 #undef FX_Mul
27 #endif
28 // Prepare to switch the definition of FX_MulFx64c
29 #ifdef FX_Mul32x64c
30 #undef FX_Mul32x64c
31 #endif
32 // Prepare to switch the definition of MATH_CountLeadingZeros
33 #ifdef MATH_CountLeadingZeros
34 #undef MATH_CountLeadingZeros
35 #endif
36 // Because CPU is in ARM mode, function versions are used.
37 #define FX_Mul(v1, v2)                 FX_MulFunc(v1, v2)
38 #define FX_Mul32x64c(v32, v64c)        FX_Mul32x64cFunc(v32, v64c)
39 #define MATH_CountLeadingZeros(x)      MATH_CountLeadingZerosFunc(x)
40