1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: math_Matrix33.h 4 5 Copyright (C)2009-2010 Nintendo Co., Ltd. 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 $Revision: 17287 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_MATH_ARMV6_MATH_MATRIX33_H_ 17 #define NN_MATH_ARMV6_MATH_MATRIX33_H_ 18 19 #include <cstring> 20 #include <nn/math/math_Config.h> 21 #include <nn/math/math_Matrix33.h> 22 23 #pragma push 24 #pragma Otime 25 26 namespace nn { 27 namespace math { 28 namespace ARMv6 { 29 30 template<typename TMatrix> inline TMatrix* 31 MTX33MultC(TMatrix* pOut, const TMatrix* __restrict p1, const TMatrix* __restrict p2); 32 33 NN_MATH_INLINE MTX33* MTX33CopyC(MTX33* pOut, const MTX33* p); 34 NN_MATH_INLINE MTX33* MTX33MAddC(MTX33* pOut, f32 t, const MTX33* p1, const MTX33* p2); 35 NN_MATH_INLINE MTX33* MTX33MAddC_FAST(MTX33* pOut, f32 t, const MTX33* p1, const MTX33* p2); 36 NN_MATH_INLINE VEC3* VEC3TransformC(VEC3* pOut, const MTX33* pM, const VEC3* pV); 37 38 MTX33* MTX33CopyAsm(MTX33* pOut, const MTX33* p); 39 MTX33* MTX33MAddAsm(MTX33* pOut, f32 t, const MTX33* p1, const MTX33* p2); 40 MTX33* MTX33MAddAsm(MTX33* pOut, f32 t, const MTX33* p1, const MTX33* p2); 41 VEC3* VEC3TransformAsm(VEC3* pOut, const MTX33* pM, const VEC3* pV); 42 43 template<typename TMatrix> inline asm TMatrix* 44 MTX33MultAsm_ORG(TMatrix* pOut, const TMatrix* p1, const TMatrix* p2); 45 46 template<typename TMatrix> inline asm TMatrix* 47 MTX33MultAsm(TMatrix* pOut, const TMatrix* p1, const TMatrix* p2); 48 49 } // namespace ARMv6 50 } // namespace math 51 } // namespace nn 52 53 #pragma pop 54 55 /* NN_MATH_ARMV6_MATH_MATRIX33_H_ */ 56 #endif 57