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