Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 36) sorted by relevance

12

/TwlSDK-5.1.0/include/nitro/fx/
Dfx_trig.h49 #define FX_IDX_TO_RAD(idx) ((fx32)((FX64C_TWOPI_65536 * (idx) + 0x80000LL) >> 20)) argument
50 #define FX_IDX_TO_DEG(idx) ((fx32)((FX64C_360_65536 * (idx) + 0x80000LL) >> 20)) argument
52 SDK_DECL_INLINE fx16 FX_SinIdx(int idx);
53 SDK_DECL_INLINE fx16 FX_CosIdx(int idx);
80 SDK_INLINE fx16 FX_SinIdx(int idx) in FX_SinIdx() argument
82 SDK_MINMAX_ASSERT(idx, 0, 65535); in FX_SinIdx()
84 return FX_SinCosTable_[((idx >> 4) << 1)]; in FX_SinIdx()
96 SDK_INLINE fx16 FX_CosIdx(int idx) in FX_CosIdx() argument
98 SDK_MINMAX_ASSERT(idx, 0, 65535); in FX_CosIdx()
100 return FX_SinCosTable_[((idx >> 4) << 1) + 1]; in FX_CosIdx()
/TwlSDK-5.1.0/build/demos/fx/test/src/
Dfx_test_common.c39 void MUST_SUCCEED_ASSERT(BOOL exp, int idx) in MUST_SUCCEED_ASSERT() argument
42 #pragma unused( idx ) in MUST_SUCCEED_ASSERT()
49 OS_Printf("* Check the test code for No.%d \n", idx); in MUST_SUCCEED_ASSERT()
56 void MUST_FAIL_ASSERT(BOOL exp, int idx) in MUST_FAIL_ASSERT() argument
59 #pragma unused( idx ) in MUST_FAIL_ASSERT()
66 OS_Printf("* Check the test code for No.%d \n", idx); in MUST_FAIL_ASSERT()
Dfx_test_common.h49 extern void MUST_SUCCEED_ASSERT(BOOL exp, int idx);
50 extern void MUST_FAIL_ASSERT(BOOL exp, int idx);
/TwlSDK-5.1.0/build/demos/gx/UnitTours/3D_Pol_MakeDL/src/
Dmain.c65 static void VtxB(GXDLInfo *info, int idx) in VtxB() argument
67 G3B_Vtx(info, gCubeGeometry[idx * 3], gCubeGeometry[idx * 3 + 1], gCubeGeometry[idx * 3 + 2]); in VtxB()
70 static void VtxC(GXDLInfo *info, int idx) in VtxC() argument
72 G3C_Vtx(info, gCubeGeometry[idx * 3], gCubeGeometry[idx * 3 + 1], gCubeGeometry[idx * 3 + 2]); in VtxC()
75 static void ColorB(GXDLInfo *info, int idx) in ColorB() argument
77 G3B_Color(info, gCubeColor[idx]); in ColorB()
80 static void ColorC(GXDLInfo *info, int idx) in ColorC() argument
82 G3C_Color(info, gCubeColor[idx]); in ColorC()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/3D_Pol_Tex32768/src/
Dmain.c66 inline void vtx(int idx) in vtx() argument
68 G3_Vtx(gCubeGeometry[idx * 3], gCubeGeometry[idx * 3 + 1], gCubeGeometry[idx * 3 + 2]); in vtx()
71 inline void normal(int idx) in normal() argument
73 G3_Direct1(G3OP_NORMAL, gCubeNormal[idx]); in normal()
77 inline void tex_coord(int idx) in tex_coord() argument
79 G3_Direct1(G3OP_TEXCOORD, gCubeTexCoord[idx]); in tex_coord()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/3D_Pol_Tex4x4/src/
Dmain.c69 inline void vtx(int idx) in vtx() argument
71 G3_Vtx(gCubeGeometry[idx * 3], gCubeGeometry[idx * 3 + 1], gCubeGeometry[idx * 3 + 2]); in vtx()
74 inline void normal(int idx) in normal() argument
76 G3_Direct1(G3OP_NORMAL, gCubeNormal[idx]); in normal()
80 inline void tex_coord(int idx) in tex_coord() argument
82 G3_Direct1(G3OP_TEXCOORD, gCubeTexCoord[idx]); in tex_coord()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/ClearImage/src/
Dmain.c74 inline void Vertex(int idx) in Vertex() argument
76 G3_Vtx(s_Vertex[idx * 3], s_Vertex[idx * 3 + 1], s_Vertex[idx * 3 + 2]); in Vertex()
84 inline void Normal(int idx) in Normal() argument
86 G3_Direct1(G3OP_NORMAL, s_Normal[idx]); in Normal()
94 inline void TextureCoord(int idx) in TextureCoord() argument
96 G3_Direct1(G3OP_TEXCOORD, s_TextureCoord[idx]); in TextureCoord()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/3D_Pol_Tex4_Plett/src/
Dmain.c67 inline void vtx(int idx) in vtx() argument
69 G3_Vtx(gCubeGeometry[idx * 3], gCubeGeometry[idx * 3 + 1], gCubeGeometry[idx * 3 + 2]); in vtx()
72 inline void normal(int idx) in normal() argument
74 G3_Direct1(G3OP_NORMAL, gCubeNormal[idx]); in normal()
78 inline void tex_coord(int idx) in tex_coord() argument
80 G3_Direct1(G3OP_TEXCOORD, gCubeTexCoord[idx]); in tex_coord()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/3D_Pol_Tex_Alpha/src/
Dmain.c67 inline void vtx(int idx) in vtx() argument
69 G3_Vtx(gCubeGeometry[idx * 3], gCubeGeometry[idx * 3 + 1], gCubeGeometry[idx * 3 + 2]); in vtx()
72 inline void normal(int idx) in normal() argument
74 G3_Direct1(G3OP_NORMAL, gCubeNormal[idx]); in normal()
78 inline void tex_coord(int idx) in tex_coord() argument
80 G3_Direct1(G3OP_TEXCOORD, gCubeTexCoord[idx]); in tex_coord()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/3D_Pol_Tex16_Plett/src/
Dmain.c67 inline void vtx(int idx) in vtx() argument
69 G3_Vtx(gCubeGeometry[idx * 3], gCubeGeometry[idx * 3 + 1], gCubeGeometry[idx * 3 + 2]); in vtx()
72 inline void normal(int idx) in normal() argument
74 G3_Direct1(G3OP_NORMAL, gCubeNormal[idx]); in normal()
78 inline void tex_coord(int idx) in tex_coord() argument
80 G3_Direct1(G3OP_TEXCOORD, gCubeTexCoord[idx]); in tex_coord()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/3D_Pol_Tex256_Plett/src/
Dmain.c67 inline void vtx(int idx) in vtx() argument
69 G3_Vtx(gCubeGeometry[idx * 3], gCubeGeometry[idx * 3 + 1], gCubeGeometry[idx * 3 + 2]); in vtx()
72 inline void normal(int idx) in normal() argument
74 G3_Direct1(G3OP_NORMAL, gCubeNormal[idx]); in normal()
78 inline void tex_coord(int idx) in tex_coord() argument
80 G3_Direct1(G3OP_TEXCOORD, gCubeTexCoord[idx]); in tex_coord()
/TwlSDK-5.1.0/build/demos/spi/tp-2/src/
Dmain.c155 s32 i, idx; in HandDraw() local
165 idx = last_idx - (s32)size + i + 1; in HandDraw()
166 if (idx < 0) in HandDraw()
168 idx += SAMPLING_BUFSIZE; in HandDraw()
171 if (!buf[idx].touch) in HandDraw()
176 if (buf[idx].validity != 0) in HandDraw()
181 TP_GetCalibratedPoint(&sample, &buf[idx]); in HandDraw()
182 OS_Printf("( %d, %d ) -> ( %d, %d )\n", buf[idx].x, buf[idx].y, sample.x, sample.y); in HandDraw()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/FlipRepeat/src/
Dmain.c64 inline void Vertex(int idx) in Vertex() argument
66 G3_Vtx(s_Vertex[idx * 3], s_Vertex[idx * 3 + 1], s_Vertex[idx * 3 + 2]); in Vertex()
82 inline void TextureCoord(int idx) in TextureCoord() argument
84 G3_Direct1(G3OP_TEXCOORD, s_TextureCoord[idx]); in TextureCoord()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/Master_Bright/src/
Dmain.c76 inline void Vertex(int idx) in Vertex() argument
78 G3_Vtx(s_Vertex[idx * 3], s_Vertex[idx * 3 + 1], s_Vertex[idx * 3 + 2]); in Vertex()
86 inline void Normal(int idx) in Normal() argument
88 G3_Direct1(G3OP_NORMAL, s_Normal[idx]); in Normal()
96 inline void TextureCoord(int idx) in TextureCoord() argument
98 G3_Direct1(G3OP_TEXCOORD, s_TextureCoord[idx]); in TextureCoord()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/ClearDepthOnly/src/
Dmain.c75 inline void Vertex(int idx) in Vertex() argument
77 G3_Vtx(s_Vertex[idx * 3], s_Vertex[idx * 3 + 1], s_Vertex[idx * 3 + 2]); in Vertex()
85 inline void Normal(int idx) in Normal() argument
87 G3_Direct1(G3OP_NORMAL, s_Normal[idx]); in Normal()
95 inline void TextureCoord(int idx) in TextureCoord() argument
97 G3_Direct1(G3OP_TEXCOORD, s_TextureCoord[idx]); in TextureCoord()
/TwlSDK-5.1.0/build/demos/wvr/switchover/src/
Dgraphic_main.c113 static inline void Color(int idx) in Color() argument
115 G3_Color(gCubeColor[idx]); in Color()
127 static inline void Vtx(int idx) in Vtx() argument
129 G3_Vtx(gCubeGeometry[idx * 3], gCubeGeometry[idx * 3 + 1], gCubeGeometry[idx * 3 + 2]); in Vtx()
342 int idx = 0; in setupSubOAM() local
354 for (x = 0; x < 256; x += 64, idx++) in setupSubOAM()
356 G2_SetOBJAttr(&sOamBak[idx], x, y, 0, in setupSubOAM()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/3D_Pol_LightColor/src/
Dmain.c67 inline void color(int idx) in color() argument
69 G3_Color(gCubeColor[idx]); in color()
72 inline void vtx(int idx) in vtx() argument
74 G3_Vtx(gCubeGeometry[idx * 3], gCubeGeometry[idx * 3 + 1], gCubeGeometry[idx * 3 + 2]); in vtx()
77 inline void normal(int idx) in normal() argument
79 G3_Direct1(G3OP_NORMAL, gCubeNormal[idx]); in normal()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/3D_Pol_Tex_Decal/src/
Dmain.c60 inline void vtx(int idx) in vtx() argument
62 G3_Vtx(gCubeGeometry[idx * 3], gCubeGeometry[idx * 3 + 1], gCubeGeometry[idx * 3 + 2]); in vtx()
65 inline void normal(int idx) in normal() argument
67 G3_Direct1(G3OP_NORMAL, gCubeNormal[idx]); in normal()
71 inline void tex_coord(int idx) in tex_coord() argument
73 G3_Direct1(G3OP_TEXCOORD, gCubeTexCoord[idx]); in tex_coord()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/3D_Edge_Marking/src/
Dmain.c59 inline void vtx(int idx) in vtx() argument
61 G3_Vtx(gCubeGeometry[idx * 3], gCubeGeometry[idx * 3 + 1], gCubeGeometry[idx * 3 + 2]); in vtx()
64 inline void normal(int idx) in normal() argument
66 G3_Direct1(G3OP_NORMAL, gCubeNormal[idx]); in normal()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/3D_Pol_Color/src/
Dmain.c54 static void Color(int idx) in Color() argument
56 G3_Color(gCubeColor[idx]); in Color()
59 static void Vtx(int idx) in Vtx() argument
61 G3_Vtx(gCubeGeometry[idx * 3], gCubeGeometry[idx * 3 + 1], gCubeGeometry[idx * 3 + 2]); in Vtx()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/3D_Pol_Env_Mapping/src/
Dmain.c67 inline void vtx(int idx) in vtx() argument
69 G3_Vtx(gCubeGeometry[idx * 3], gCubeGeometry[idx * 3 + 1], gCubeGeometry[idx * 3 + 2]); in vtx()
72 inline void normal(int idx) in normal() argument
74 G3_Direct1(G3OP_NORMAL, gCubeNormal[idx]); in normal()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/PosVecTest/src/
Dmain.c78 inline void Vertex(int idx) in Vertex() argument
80 G3_Vtx(s_Vertex[idx * 3], s_Vertex[idx * 3 + 1], s_Vertex[idx * 3 + 2]); in Vertex()
88 inline void Normal(int idx) in Normal() argument
90 G3_Direct1(G3OP_NORMAL, s_Normal[idx]); in Normal()
98 inline void TextureCoord(int idx) in TextureCoord() argument
100 G3_Direct1(G3OP_TEXCOORD, s_TextureCoord[idx]); in TextureCoord()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/3D_Pol_Simple/src/
Dmain.c43 static void vtx(int idx) in vtx() argument
45 G3_Vtx(gCubeGeometry[idx * 3], gCubeGeometry[idx * 3 + 1], gCubeGeometry[idx * 3 + 2]); in vtx()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/3D_Pol_Split/src/
Dmain.c54 static void Color(int idx) in Color() argument
56 G3_Color(gCubeColor[idx]); in Color()
59 static void Vtx(int idx) in Vtx() argument
61 G3_Vtx(gCubeGeometry[idx * 3], gCubeGeometry[idx * 3 + 1], gCubeGeometry[idx * 3 + 2]); in Vtx()
/TwlSDK-5.1.0/build/demos/gx/UnitTours/3D_Pol_Vertex_Source/src/
Dmain.c75 inline void Vertex(int idx) in Vertex() argument
77 G3_Vtx(s_Vertex[idx * 3], s_Vertex[idx * 3 + 1], s_Vertex[idx * 3 + 2]); in Vertex()
88 inline void Normal(int idx) in Normal() argument
90 G3_Direct1(G3OP_NORMAL, s_Normal[idx]); in Normal()

12