| /CTR-SDK-4.2.8-20130828/include/nn/math/ |
| D | math_Utility.h | 53 inline S Max(T a, U b) in Max() argument 55 return (a >= b) ? a: b; in Max() 68 inline T Max(T a, T b) in Max() argument 70 return (a >= b) ? a: b; in Max() 85 inline S Min(T a, U b) in Min() argument 87 return (a <= b) ? a: b; in Min() 100 inline T Min(T a, T b) in Min() argument 102 return (a <= b) ? a: b; in Min() 119 inline S Max(T a, U b, R c) in Max() argument 121 return (a >= b) ? ((a >= c) ? a: c) : ((b >= c) ? b: c); in Max() [all …]
|
| D | math_Equation.h | 25 int SolveEquation2(f32* root, f32 a, f32 b, f32 c); 26 int SolveEquation3(f32* root, f32 a, f32 b, f32 c, f32 d); 27 int SolveEquation4(f32* root, f32 a, f32 b, f32 c, f32 d, f32 e);
|
| D | math_TinyMt.h | 264 u32 b = (GenerateRandomU32() >> B_SHIFT); in GenerateRandomF64() local 266 return (1.0 * a * (1u << B_BITS) + b) * (1.0 / (1ull << RESOLUTION)); in GenerateRandomF64()
|
| D | math_MersenneTwister.h | 274 u32 b = (GenerateRandomU32() >> B_SHIFT); in GenerateRandomF64() local 276 return (1.0 * a * (1u << B_BITS) + b) * (1.0 / (1ull << RESOLUTION)); in GenerateRandomF64()
|
| D | math_Matrix44.h | 87 NN_FORCE_INLINE MTX44* MTX44Frustum(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); 104 NN_MATH_INLINE MTX44* MTX44FrustumPivot(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, Pivo… 226 NN_FORCE_INLINE MTX44* MTX44Ortho(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); 243 NN_MATH_INLINE MTX44* MTX44OrthoPivot(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, PivotD… 716 …self_type& SetupFrustum(f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, PivotDirection pivot = PIVOT_NON… 718 return *MTX44FrustumPivot(this, l, r, b, t, n, f, pivot); 732 … self_type& SetupOrtho(f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, PivotDirection pivot = PIVOT_NONE) 734 return *MTX44OrthoPivot(this, l, r, b, t, n, f, pivot); 833 MTX44Frustum(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f) in MTX44Frustum() argument 837 return ARMv6::MTX44FrustumC(pOut, l, r, b, t, n, f); in MTX44Frustum() [all …]
|
| /CTR-SDK-4.2.8-20130828/sources/libraries/math/ |
| D | math_Equation.cpp | 72 SolveEquation2(f32* root, /*f32 a==1,*/ f32 b, f32 c) in SolveEquation2() argument 74 if( b == 0 ) in SolveEquation2() 95 f32 A = b / 2; in SolveEquation2() 134 SolveEquation3(/*f32* root, f32 a==1,*/ f32 b, f32 c, f32 d) in SolveEquation3() argument 136 f32 q = (spow<2>(b) - 3 * c) / 9; in SolveEquation3() 137 f32 r = (2 * spow<3>(b) - 9 * b * c + 27 * d) / 54; in SolveEquation3() 139 f32 b_3 = b / 3; in SolveEquation3() 186 SolveEquation2(f32* root, f32 a, f32 b, f32 c) in SolveEquation2() argument 191 if( b != 0 ) in SolveEquation2() 206 f32 A = b / (2 * a); in SolveEquation2() [all …]
|
| D | math_Triangular.cpp | 602 f32 b; in Atan2FIdx() local 619 b = y; in Atan2FIdx() 627 b = x; in Atan2FIdx() 638 b = -y; in Atan2FIdx() 646 b = x; in Atan2FIdx() 660 b = y; in Atan2FIdx() 668 b = -x; in Atan2FIdx() 679 b = -y; in Atan2FIdx() 687 b = -x; in Atan2FIdx() 695 c - AtanFIdx_(b/a): in Atan2FIdx() [all …]
|
| D | math_TinyMt.cpp | 114 const bit32 b = m_State[3]; in GenerateRandomU32() local 116 const bit32 d = b ^ (b >> 1) ^ c; in GenerateRandomU32() 190 const bit32 b = a + d + k; in GenerateInitialValuePlus() local 192 s0 = b; in GenerateInitialValuePlus() 194 s2 += b; in GenerateInitialValuePlus() 205 const bit32 b = a - d; in GenerateInitialValueXor() local 207 s0 = b; in GenerateInitialValueXor() 209 s2 ^= b; in GenerateInitialValueXor()
|
| /CTR-SDK-4.2.8-20130828/include/nn/util/ |
| D | util_Color.h | 80 b(static_cast<u8>(blue)), in Color8() 138 nn::math::Min(this->b + right.b, ELEMENT_MAX), 156 nn::math::Max(this->b - right.b, ELEMENT_MIN), 174 this->b * right.b / ELEMENT_MAX, 192 (this->b < right.b) ? this->b * ELEMENT_MAX / right.b : ELEMENT_MAX, 208 if (b < ELEMENT_MAX) { b++; } 224 if (b < ELEMENT_MAX) { b++; } 239 if (b > ELEMENT_MIN) { b--; } 255 if (b > ELEMENT_MIN) { b--; } 351 nn::math::Min(this->b + right.b, ELEMENT_MAX), [all …]
|
| D | util_Rect.h | 63 Rect(f32 l, f32 t, f32 r, f32 b) in Rect() 67 bottom(b) in Rect() 189 const f32 b = bottom; in Normalize() local 193 top = (b - t) >= 0 ? t : b; in Normalize() 194 bottom = (b - t) >= 0 ? b : t; in Normalize()
|
| /CTR-SDK-4.2.8-20130828/include/nn/config/compiler/ |
| D | rvct.h | 112 #define NN_BSYM( no ) %b##no 122 #define NN_ATTR_PRIVATE_SECTION_2(a, b) \ argument 123 __attribute__((section(#a "." #b))) 125 #define NN_ATTR_PRIVATE_SECTION_1(a, b) \ argument 126 NN_ATTR_PRIVATE_SECTION_2(a, b)
|
| D | egcc.h | 37 #define NN_BSYM( no ) %b##no
|
| /CTR-SDK-4.2.8-20130828/include/nn/gx/CTR/ |
| D | gx_MacroCommon.h | 69 GLubyte b; member 73 #define PICA_CMD_DATA_COLOR_RGB8( r, g, b ) \ argument 74 ( r | g << 8 | b << 16 ) 76 #define PICA_CMD_DATA_COLOR_RGBA8( r, g, b, a ) \ argument 77 ( r | g << 8 | b << 16 | a << 24 )
|
| D | gx_MacroShader.h | 164 #define PICA_CMD_DATA_VS_BOOL(b) \ argument 165 ( (b) | 0x7fff0000 ) 672 #define PICA_CMD_DATA_GS_BOOL(b) \ argument 673 ( (b) | 0x7fff0000 )
|
| /CTR-SDK-4.2.8-20130828/sources/libraries/rdt/CTR/ |
| D | rdt_Utility.h | 256 T min(T a, T b) in min() argument 258 return a < b ? a : b; in min() 262 T max(T a, T b) in max() argument 264 return a > b ? a : b; in max()
|
| D | rdt_ResendQueue.cpp | 221 Segment b; // The data is 50 bytes. in Test() local 222 b.SetData(data+100, 50); in Test() 223 b.SetSeqNumber(SEQ + 100); in Test() 240 CU_ASSERT(r.Push(b)); in Test() 269 CU_ASSERT(r.Push(b)); in Test()
|
| /CTR-SDK-4.2.8-20130828/include/nn/math/inline/ |
| D | math_Matrix34.ipp | 115 MTX34TextureProjectionFrustum(MTX34* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 scaleS, f32 scale… 117 NN_ASSERT(t != b); 130 f32 reverseHeight = 1.0f / (t - b); 133 mtx[1][2] = (((t+ b) * reverseHeight) * scaleT) - translateT; 144 MTX34TextureProjectionOrtho(MTX34* pOut, f32 l, f32 r, f32 b, f32 t, f32 scaleS, f32 scaleT, f32 tr… 146 NN_ASSERT(t != b); 159 f32 reverseHeight = 1.0f / (t - b); 163 mtx[1][3] = ((-(t + b) * reverseHeight) * scaleT) + translateT; 203 MTX34ShadowProjectionFrustum(MTX34* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f) 205 NN_ASSERT(t != b); [all …]
|
| D | math_Matrix44.ipp | 27 MTX44FrustumPivot(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, PivotDirection pivot) 29 MTX44Frustum( pOut, l, r, b, t, n, f ); 154 inline void SwapF(f32 &a, f32 &b) 158 a = b; 159 b = tmp; 164 MTX44OrthoPivot(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f, PivotDirection pivot) 166 MTX44Ortho( pOut, l, r, b, t, n, f );
|
| /CTR-SDK-4.2.8-20130828/include/nn/net/compatible/nnet/ |
| D | nnet.h | 60 #define NNET_MIN(a, b) (((a) < (b)) ? (a) : (b)) /* Please see man pages for details */ argument 61 #define NNET_MAX(a, b) (((a) > (b)) ? (a) : (b)) /* Please see man pages for details */ argument
|
| /CTR-SDK-4.2.8-20130828/sources/libraries/fnd/detail/ |
| D | fnd_DetailHeapCommon.h | 45 #define NNSI_CREATE_HEAP_SIGNATURE(a,b,c,d) ( ((a & 0xFF) << 24) | ((b & 0xFF) << 16) | ((c & 0xFF… argument
|
| D | fnd_DetailHeapCommonImpl.h | 152 ComparePtr(const void* a, const void* b) in ComparePtr() argument 155 const u8* wb = reinterpret_cast<const u8*>(b); in ComparePtr()
|
| /CTR-SDK-4.2.8-20130828/include/nn/font/detail/ |
| D | font_BinaryFileFormat.h | 23 #define NN_FONT_MAKE_SIGWORD(a, b, c, d) \ argument 25 (static_cast<u8>(a) << 0) | (static_cast<u8>(b) << 8) \ 30 #define NN_FONT_MAKE_SIGWORD(a, b, c, d) \ argument 32 (static_cast<u8>(a) << 24) | (static_cast<u8>(b) << 16) \
|
| /CTR-SDK-4.2.8-20130828/include/nn/math/ARMv6/ |
| D | math_Matrix44.h | 30 NN_MATH_INLINE MTX44* MTX44FrustumC(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); 31 NN_MATH_INLINE MTX44* MTX44FrustumC_FAST(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); 32 NN_MATH_INLINE MTX44* MTX44OrthoC(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f); 33 NN_MATH_INLINE MTX44* MTX44OrthoC_FAST(MTX44* pOut, f32 l, f32 r, f32 b, f32 t, f32 n, f32 f);
|
| /CTR-SDK-4.2.8-20130828/include/nn/net/compatible/nlib/ |
| D | nlib_md5_horizon.h | 38 unsigned long a, b, c, d; member
|
| /CTR-SDK-4.2.8-20130828/sources/libraries/dbg/CTR/ |
| D | dbg_DirectPrint.cpp | 289 data[ 0 ] = src.b; in ConvertColorFormat() 296 data[ 0 ] = ( src.b & 0xf0 ) | ( src.a >> 4 ); in ConvertColorFormat() 302 … data[ 0 ] = ( ( src.a & 0x80 ) >> 7 ) | ( ( src.b & 0xf8 ) >> 2 ) | ( ( src.g & 0x3 ) << 6 ); in ConvertColorFormat() 308 data[ 0 ] = ( ( src.g & 0x1c ) << 5 ) | ( src.b >> 3 ); in ConvertColorFormat()
|