Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 99) sorted by relevance

1234

/TwlSDK-5.1.0/build/demos/fx/test/src/
Dfx_append_mtx.c106 static void GetDifferenceMtx_(const double *a, const double *b, double *diff, int numElement);
166 MtxD43 b; in MTX_Concat43D_() local
176 MtxFxToD_(bfx->a, b.a, NUM_MTX43_ELEMENT); in MTX_Concat43D_()
184 ab->_00 = x * b._00 + y * b._10 + z * b._20; in MTX_Concat43D_()
185 ab->_01 = x * b._01 + y * b._11 + z * b._21; in MTX_Concat43D_()
187 xx = b._02; in MTX_Concat43D_()
188 yy = b._12; in MTX_Concat43D_()
189 zz = b._22; in MTX_Concat43D_()
199 ab->_11 = x * b._01 + y * b._11 + z * b._21; in MTX_Concat43D_()
201 xx = b._00; in MTX_Concat43D_()
[all …]
Dmain.c81 VecFx32 b = { FX32_ONE * 5, FX32_ONE * 7, FX32_ONE * 11 }; in test_FX_VEC() local
87 VEC_Add(&a, &b, &c); in test_FX_VEC()
90 VEC_Subtract(&a, &b, &c); in test_FX_VEC()
94 tmp = VEC_DotProduct(&a, &b); in test_FX_VEC()
97 VEC_CrossProduct(&a, &b, &c); in test_FX_VEC()
148 fx64c b = FX_SinFx64c(x); in test_FX_TRIG() local
149 double miss = fabs(a - b / 4294967296.0); in test_FX_TRIG()
168 fx64c b = FX_CosFx64c(x); in test_FX_TRIG() local
169 double miss = fabs(a - b / 4294967296.0); in test_FX_TRIG()
255 static BOOL equal_mtx33(const MtxFx33 *a, const MtxFx33 *b) in equal_mtx33() argument
[all …]
Dfx_append_vec.c90 static void VecSubVecD_(const VecD * a, const VecD * b, VecD * ab);
91 static void GetErrorVecD_(const VecD * a, const VecD * b, VecD * ab);
92 static void CalcErrorBtweenVecFxAndVecD_(const VecFx32 *a, const VecD * b, VecD * vError);
98 static double FX_Mul_d_(const fx32 a, const fx32 b);
99 static double VEC_DotProduct_d_(const VecFx32 *a, const VecFx32 *b);
100 static void VEC_CrossProduct_d_(const VecFx32 *a, const VecFx32 *b, VecD * axb);
105 static double GetDotProductError_(const VecFx32 *a, const VecFx32 *b);
106 static double GetCrossProductError_(const VecFx32 *a, const VecFx32 *b);
173 static void VecSubVecD_(const VecD * a, const VecD * b, VecD * ab) in VecSubVecD_() argument
176 SDK_NULL_ASSERT(b); in VecSubVecD_()
[all …]
/TwlSDK-5.1.0/build/demos/cp/ThreadSafeTest/src/
Dmain.c71 u32 b; in NitroMain() local
97 b = B2; in NitroMain()
101 CP_SetDiv64_32(a, b); in NitroMain()
102 OS_Printf("Main: Start %llx / %x ...\n", a, b); in NitroMain()
109 OS_Printf("Main: Get %llx / %x = %llx\n", a, b, c); in NitroMain()
146 u32 a, b, c; in VBlankIntr() local
153 b = B1; in VBlankIntr()
155 CP_SetDiv32_32(a, b); in VBlankIntr()
156 OS_Printf("VBlank: Start %x / %x ...\n", a, b); in VBlankIntr()
160 OS_Printf("VBlank: Get %x / %x = %x\n", a, b, c); in VBlankIntr()
[all …]
/TwlSDK-5.1.0/build/libraries/math/common/src/
Ddgt_md5.c49 inline static u32 CalcRound1(u32 a, u32 b, u32 c, u32 d, u32 x, u32 s, u32 t) in CalcRound1() argument
51 return b + ROTL((a + F(b,c,d) + x + t), s); in CalcRound1()
54 inline static u32 CalcRound2(u32 a, u32 b, u32 c, u32 d, u32 x, u32 s, u32 t) in CalcRound2() argument
56 return b + ROTL((a + G(b,c,d) + x + t), s); in CalcRound2()
59 inline static u32 CalcRound3(u32 a, u32 b, u32 c, u32 d, u32 x, u32 s, u32 t) in CalcRound3() argument
61 return b + ROTL((a + H(b,c,d) + x + t), s); in CalcRound3()
64 inline static u32 CalcRound4(u32 a, u32 b, u32 c, u32 d, u32 x, u32 s, u32 t) in CalcRound4() argument
66 return b + ROTL((a + I(b,c,d) + x + t), s); in CalcRound4()
161 u32 a, b, c, d; in ProcessBlock() local
167 b = context->b; in ProcessBlock()
[all …]
Ddgt_sha1.c95 u32 b = context->h[1]; in MATHi_SHA1ProcessBlock() local
133 tmp = 0x5A827999UL + ((b & c) | (~b & d)); in MATHi_SHA1ProcessBlock()
138 c = NETRotateLeft32(30, b); in MATHi_SHA1ProcessBlock()
139 b = a; in MATHi_SHA1ProcessBlock()
144 tmp = 0x6ED9EBA1UL + (b ^ c ^ d); in MATHi_SHA1ProcessBlock()
149 c = NETRotateLeft32(30, b); in MATHi_SHA1ProcessBlock()
150 b = a; in MATHi_SHA1ProcessBlock()
155 tmp = 0x8F1BBCDCUL + ((b & c) | (b & d) | (c & d)); in MATHi_SHA1ProcessBlock()
160 c = NETRotateLeft32(30, b); in MATHi_SHA1ProcessBlock()
161 b = a; in MATHi_SHA1ProcessBlock()
[all …]
/TwlSDK-5.1.0/build/libraries/fx/common/src/
Dfx_vec.c39 void VEC_Add(const VecFx32 *a, const VecFx32 *b, VecFx32 *ab) in VEC_Add() argument
42 SDK_NULL_ASSERT(b); in VEC_Add()
45 ab->x = a->x + b->x; in VEC_Add()
46 ab->y = a->y + b->y; in VEC_Add()
47 ab->z = a->z + b->z; in VEC_Add()
63 void VEC_Subtract(const VecFx32 *a, const VecFx32 *b, VecFx32 *ab) in VEC_Subtract() argument
66 SDK_NULL_ASSERT(b); in VEC_Subtract()
69 ab->x = a->x - b->x; in VEC_Subtract()
70 ab->y = a->y - b->y; in VEC_Subtract()
71 ab->z = a->z - b->z; in VEC_Subtract()
[all …]
Dfx_mtx44.c374 void MTX_Concat44(const MtxFx44 *a, const MtxFx44 *b, MtxFx44 *ab) in MTX_Concat44() argument
383 SDK_NULL_ASSERT(b); in MTX_Concat44()
386 if (ab == b) in MTX_Concat44()
404 (fx32)(((fx64)x * b->_00 + (fx64)y * b->_10 + (fx64)z * b->_20 + in MTX_Concat44()
405 (fx64)w * b->_30) >> FX32_SHIFT); in MTX_Concat44()
407 (fx32)(((fx64)x * b->_01 + (fx64)y * b->_11 + (fx64)z * b->_21 + in MTX_Concat44()
408 (fx64)w * b->_31) >> FX32_SHIFT); in MTX_Concat44()
410 (fx32)(((fx64)x * b->_03 + (fx64)y * b->_13 + (fx64)z * b->_23 + in MTX_Concat44()
411 (fx64)w * b->_33) >> FX32_SHIFT); in MTX_Concat44()
413 xx = b->_02; in MTX_Concat44()
[all …]
Dfx_atanidx.c214 fx32 a, b; in FX_Atan2Idx() local
225 b = x; in FX_Atan2Idx()
232 b = y; in FX_Atan2Idx()
247 b = y; in FX_Atan2Idx()
254 b = x; in FX_Atan2Idx()
277 b = x; in FX_Atan2Idx()
284 b = y; in FX_Atan2Idx()
298 b = y; in FX_Atan2Idx()
305 b = x; in FX_Atan2Idx()
331 if (b == 0) in FX_Atan2Idx()
[all …]
Dfx_atan.c219 fx32 a, b, c; in FX_Atan2() local
229 b = x; in FX_Atan2()
236 b = y; in FX_Atan2()
251 b = y; in FX_Atan2()
258 b = x; in FX_Atan2()
281 b = x; in FX_Atan2()
288 b = y; in FX_Atan2()
302 b = y; in FX_Atan2()
309 b = x; in FX_Atan2()
335 if (b == 0) in FX_Atan2()
[all …]
Dfx_mtx22.c175 void MTX_Concat22(const MtxFx22 *a, const MtxFx22 *b, MtxFx22 *ab) in MTX_Concat22() argument
183 SDK_NULL_ASSERT(b); in MTX_Concat22()
186 if (ab == b) in MTX_Concat22()
201 p->_00 = (fx32)(((fx64)x * b->_00 + (fx64)y * b->_10) >> FX32_SHIFT); in MTX_Concat22()
202 p->_01 = (fx32)(((fx64)x * b->_01 + (fx64)y * b->_11) >> FX32_SHIFT); in MTX_Concat22()
207 p->_10 = (fx32)(((fx64)x * b->_00 + (fx64)y * b->_10) >> FX32_SHIFT); in MTX_Concat22()
208 p->_11 = (fx32)(((fx64)x * b->_01 + (fx64)y * b->_11) >> FX32_SHIFT); in MTX_Concat22()
Dfx_mtx43.c348 void MTX_Concat43(const MtxFx43 *a, const MtxFx43 *b, MtxFx43 *ab) in MTX_Concat43() argument
357 SDK_NULL_ASSERT(b); in MTX_Concat43()
360 if (ab == b) in MTX_Concat43()
376 p->_00 = (fx32)(((fx64)x * b->_00 + (fx64)y * b->_10 + (fx64)z * b->_20) >> FX32_SHIFT); in MTX_Concat43()
377 p->_01 = (fx32)(((fx64)x * b->_01 + (fx64)y * b->_11 + (fx64)z * b->_21) >> FX32_SHIFT); in MTX_Concat43()
379 xx = b->_02; in MTX_Concat43()
380 yy = b->_12; in MTX_Concat43()
381 zz = b->_22; in MTX_Concat43()
391 p->_11 = (fx32)(((fx64)x * b->_01 + (fx64)y * b->_11 + (fx64)z * b->_21) >> FX32_SHIFT); in MTX_Concat43()
393 xx = b->_00; in MTX_Concat43()
[all …]
Dfx_cp.c310 s32 FX_DivS32(s32 a, s32 b) in FX_DivS32() argument
313 FX_DIVISION_BY_ZERO(a, b); in FX_DivS32()
314 CP_SetDiv32_32((u32)a, (u32)b); in FX_DivS32()
330 s32 FX_ModS32(s32 a, s32 b) in FX_ModS32() argument
333 FX_DIVISION_BY_ZERO(a, b); in FX_ModS32()
334 CP_SetDiv32_32((u32)a, (u32)b); in FX_ModS32()
Dfx_mtx33.c357 void MTX_Concat33(const MtxFx33 *a, const MtxFx33 *b, MtxFx33 *ab) in MTX_Concat33() argument
366 SDK_NULL_ASSERT(b); in MTX_Concat33()
369 if (ab == b) in MTX_Concat33()
385 p->_00 = (fx32)(((fx64)x * b->_00 + (fx64)y * b->_10 + (fx64)z * b->_20) >> FX32_SHIFT); in MTX_Concat33()
386 p->_01 = (fx32)(((fx64)x * b->_01 + (fx64)y * b->_11 + (fx64)z * b->_21) >> FX32_SHIFT); in MTX_Concat33()
388 xx = b->_02; in MTX_Concat33()
389 yy = b->_12; in MTX_Concat33()
390 zz = b->_22; in MTX_Concat33()
400 p->_11 = (fx32)(((fx64)x * b->_01 + (fx64)y * b->_11 + (fx64)z * b->_21) >> FX32_SHIFT); in MTX_Concat33()
402 xx = b->_00; in MTX_Concat33()
[all …]
/TwlSDK-5.1.0/include/nitro/math/
Dmath.h94 #define MATH_MIN(a,b) (((a) <= (b)) ? (a) : (b)) argument
107 SDK_INLINE int MATH_IMin(int a, int b) in MATH_IMin() argument
109 return (a <= b) ? a : b; in MATH_IMin()
123 #define MATH_MAX(a,b) (((a) >= (b)) ? (a) : (b)) argument
135 SDK_INLINE int MATH_IMax(int a, int b) in MATH_IMax() argument
137 return (a >= b) ? a : b; in MATH_IMax()
/TwlSDK-5.1.0/man/en_US/tools/
Dbannerfont.rtf12 002b [+] 00ca [Ê] 3042 [あ] 30b4 [ゴ]
21 0034 [4] 00d3 [Ó] 304b [か] 30bd [ソ]
28 003b [;] 00da [Ú] 3052 [げ] 30c4 [ツ]
37 0044 [D] 00e4 [ä] 305b [せ] 30cd [ネ]
44 004b [K] 00eb [ë] 3062 [ぢ] 30d4 [ピ]
53 0054 [T] 00f4 [ô] 306b [に] 30dd [ポ]
60 005b [[] 00fb [û] 3072 [ひ] 30e4 [ヤ]
67 0062 [b] 2010 [‐] 3079 [べ] 30eb [ル]
69 0064 [d] 2018 [‘] 307b [ほ] 30ed [ロ]
76 006b [k] 2026 […] 3082 [も] 30f4 [ヴ]
[all …]
/TwlSDK-5.1.0/include/nitro/fx/
Dfx_vec.h35 void VEC_Add(const VecFx32 *a, const VecFx32 *b, VecFx32 *ab);
36 void VEC_Subtract(const VecFx32 *a, const VecFx32 *b, VecFx32 *ab);
37 fx32 VEC_DotProduct(const VecFx32 *a, const VecFx32 *b);
38 void VEC_CrossProduct(const VecFx32 *a, const VecFx32 *b, VecFx32 *axb);
46 void VEC_Fx16Add(const VecFx16 *a, const VecFx16 *b, VecFx16 *ab);
47 void VEC_Fx16Subtract(const VecFx16 *a, const VecFx16 *b, VecFx16 *ab);
48 fx32 VEC_Fx16DotProduct(const VecFx16 *a, const VecFx16 *b);
49 void VEC_Fx16CrossProduct(const VecFx16 *a, const VecFx16 *b, VecFx16 *axb);
Dfx_cp.h62 s32 FX_DivS32(s32 a, s32 b);
63 s32 FX_ModS32(s32 a, s32 b);
65 #define FX_DIVISION_BY_ZERO(a, b) \ argument
66 SDK_WARNING(b != 0, "Division by zero(%d / %d)", a, b)
/TwlSDK-5.1.0/build/demos/math/misc-1/src/
Dmain.c165 #define PrintResultEq( a, b, f ) \ argument
166 { OS_TPrintf( ((a) == (b)) ? "[--OK--] " : "[**NG**] " ); (f) = (f) && ((a) == (b)); }
207 int b[] = { 0, 0, 1, 0, -1, 31, 32, -31, -32 }; in MathTest() local
213 result = MATH_MIN(a[i], b[i]); in MathTest()
215 OS_TPrintf("MATH_MIN(%d, %d) = %d\n", a[i], b[i], result); in MathTest()
220 result = MATH_IMin(a[i], b[i]); in MathTest()
222 OS_TPrintf("MATH_IMin(%d, %d) = %d\n", a[i], b[i], result); in MathTest()
227 result = MATH_MAX(a[i], b[i]); in MathTest()
229 OS_TPrintf("MATH_MAX(%d, %d) = %d\n", a[i], b[i], result); in MathTest()
234 result = MATH_IMax(a[i], b[i]); in MathTest()
[all …]
/TwlSDK-5.1.0/include/nitro/gx/
Dg3_util.h38 void G3i_FrustumW_(fx32 t, fx32 b, fx32 l, fx32 r, fx32 n, fx32 f, fx32 scaleW, BOOL draw,
42 void G3i_OrthoW_(fx32 t, fx32 b, fx32 l, fx32 r, fx32 n, fx32 f, fx32 scaleW, BOOL draw,
81 static inline void G3_Frustum(fx32 t, fx32 b, fx32 l, fx32 r, fx32 n, fx32 f, MtxFx44 *mtx) in G3_Frustum() argument
83 G3i_FrustumW_(t, b, l, r, n, f, FX32_ONE, TRUE, mtx); in G3_Frustum()
128 static inline void G3_Ortho(fx32 t, fx32 b, fx32 l, fx32 r, fx32 n, fx32 f, MtxFx44 *mtx) in G3_Ortho() argument
130 G3i_OrthoW_(t, b, l, r, n, f, FX32_ONE, TRUE, mtx); in G3_Ortho()
152 G3_FrustumW(fx32 t, fx32 b, fx32 l, fx32 r, fx32 n, fx32 f, fx32 scaleW, MtxFx44 *mtx) in G3_FrustumW() argument
154 G3i_FrustumW_(t, b, l, r, n, f, scaleW, TRUE, mtx); in G3_FrustumW()
202 G3_OrthoW(fx32 t, fx32 b, fx32 l, fx32 r, fx32 n, fx32 f, fx32 scaleW, MtxFx44 *mtx) in G3_OrthoW() argument
204 G3i_OrthoW_(t, b, l, r, n, f, scaleW, TRUE, mtx); in G3_OrthoW()
/TwlSDK-5.1.0/build/demos/prc/patterns/data/
Dpatterns.txt31 "b" 2 0 64 | (15,0) (18,58) (16,44) (29,33) (39,36) (47,52) (32,63) (17,56) | # 'b'
32 "b" 2 0 64 | (19,0) (22,60) | (22,36) (43,45) (36,62) (23,61) | # 'b' 2��
33 "b" 2 0 64 | (12,56) (29,40) (34,0) (23,53) (29,63) (35,58) (32,46) (49,52) | # 'b' �M�L��
/TwlSDK-5.1.0/build/libraries/math/common/src/asm/
Dsha1.s56 ; r11 : r0�o�b�N�A�b�v
59 ; �������o�b�N�A�b�v
74 ; r11 : r0�o�b�N�A�b�v
84 ; t���Z�b�g
121 ; r11 : r0�o�b�N�A�b�v
187 ; a,b,c,d,e �����[�h
202 ; r11 : r0�o�b�N�A�b�v
208 ; u32 tmp = 0x5A827999UL + ((b & c) | (~b & d));
228 ; c = NETRotateLeft32(30, b);
230 ; b = a;
[all …]
/TwlSDK-5.1.0/build/demos/rtc/convert-1/src/
Dmain.c171 #define PrintResultEq( a, b, f ) \ argument
172 { OS_TPrintf( ((a) == (b)) ? "[--OK--] " : "[**NG**] " ); (f) = (f) && ((a) == (b)); }
173 #define PrintResultStringEq( a, b, f ) \ argument
174 …{ OS_TPrintf( (strcmp((a), (b)) == 0) ? "[--OK--] " : "[**NG**] " ); (f) = (f) && (strcmp((a), (b)…
/TwlSDK-5.1.0/build/demos/os/exceptionDisplay-2/src/
Dmain.c49 volatile int b = 6; in NitroMain() local
50 volatile int c = a / b; in NitroMain()
58 volatile b = 0; in NitroMain() local
59 volatile int c = a / b; in NitroMain()
/TwlSDK-5.1.0/build/demos/os/cplusplus-1/src/
Dmain.cpp27 u32 b; member in Foo
60 b = 5678; in Foo()
92 OS_Printf("b = %d\n", b); in printB()

1234