Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 166) sorted by relevance

1234567

/RvlSDK-3.2.2/include/revolution/gx/
DGXEmVert.h37 void EmGXCmd1u8( u8 x );
38 void EmGXCmd1u16( u16 x );
39 void EmGXCmd1u32( u32 x );
40 void EmGXParam1u8( u8 x );
41 void EmGXParam1u16( u16 x );
42 void EmGXParam1u32( u32 x );
43 void EmGXParam1s8( s8 x );
44 void EmGXParam1s16( s16 x );
45 void EmGXParam1s32( s32 x );
46 void EmGXParam1f32( f32 x );
[all …]
DGXVert.h187 void func(const ts x);
191 void func(const ts x, const ts y);
195 void func(const ts x, const ts y, const ts z);
199 void func(const ts x, const ts y, const ts z, const ts w);
210 static inline void func(const ts x) \
213 *((td *) __EmBuffPtr) = (td) x; \
216 Em##func(x); \
223 static inline void func(const ts x, const ts y) \
226 *((td *) __EmBuffPtr) = (td) x; \
231 Em##func(x, y); \
[all …]
/RvlSDK-3.2.2/build/libraries/wpad/src/
DWPADClamp.c346 int x; in __ClampStickOctagon() local
354 x = *((s8*)px); in __ClampStickOctagon()
359 x = *((s16*)px); in __ClampStickOctagon()
363 if (0 <= x) in __ClampStickOctagon()
370 x = -x; in __ClampStickOctagon()
384 if (x <= min) in __ClampStickOctagon()
386 x = 0; in __ClampStickOctagon()
390 x -= min; in __ClampStickOctagon()
401 if (x == 0 && y == 0) in __ClampStickOctagon()
418 if (xy * y <= xy * x) in __ClampStickOctagon()
[all …]
/RvlSDK-3.2.2/build/demos/gxdemo/src/Simple/
Dsmp-toy-anim.c178 static u32 TestPoint( u32 curgrid, f32 x, f32 y ) in TestPoint() argument
186 xt = (s32)((x + 20.0) / 10.0); in TestPoint()
231 CurMask = TestPoint(curGrid, CurPos.x, CurPos.z); in AnimTick()
245 fullMask = TestPoint(curGrid, tp.x, tp.z); in AnimTick()
252 CurPos.x -= (CurPos.z - SLOPE_ZSTART) * SLOPE_SLOPE; in AnimTick()
260 nextVel.x = curVel.x; in AnimTick()
266 nextVel.x = -curVel.x * WALLX_BOUNCE; in AnimTick()
271 if (curVel.x < 0.0F) nextVel.x = -curVel.x * OUT_CORNER_BOUNCE; in AnimTick()
276 if (curVel.x > 0.0F) nextVel.x = -curVel.x * OUT_CORNER_BOUNCE; in AnimTick()
281 if (curVel.x > 0.0F) nextVel.x = -curVel.x * OUT_CORNER_BOUNCE; in AnimTick()
[all …]
/RvlSDK-3.2.2/build/libraries/cx/include/
DCXUtil.h27 static inline u32 CXiConvertEndian_( u32 x ) in CXiConvertEndian_() argument
31 return ((x & 0xFF000000) >> 24) | in CXiConvertEndian_()
32 ((x & 0x00FF0000) >> 8) | in CXiConvertEndian_()
33 ((x & 0x0000FF00) << 8) | in CXiConvertEndian_()
34 ((x & 0x000000FF) << 24); in CXiConvertEndian_()
36 return x; in CXiConvertEndian_()
41 static inline u16 CXiConvertEndian16_( u16 x ) in CXiConvertEndian16_() argument
45 return (u16)( ((x & 0xFF00) >> 8) | in CXiConvertEndian16_()
46 ((x & 0x00FF) << 8) ); in CXiConvertEndian16_()
48 return x; in CXiConvertEndian16_()
/RvlSDK-3.2.2/build/libraries/pad/src/
DPadclamp.c154 int x = *px; in ClampStick() local
160 if (0 <= x) in ClampStick()
167 x = -x; in ClampStick()
181 if (x <= min) in ClampStick()
183 x = 0; in ClampStick()
187 x -= min; in ClampStick()
198 if (x == 0 && y == 0) in ClampStick()
206 if (xy * y <= xy * x) in ClampStick()
208 d = xy * x + (max - xy) * y; in ClampStick()
211 x = (s8) (xy * max * x / d); in ClampStick()
[all …]
/RvlSDK-3.2.2/build/demos/wpaddemo/src/
Dwpadsample.c1016 xDiff = wpad->obj[0].x - wpad->obj[1].x; in getDistance()
1041 s16 x = X_START; in renderScreen() local
1045 DEMOPrintf(x, y, 0, "WPAD Demo -- WPADSAMPLE"); in renderScreen()
1051 DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y, 0, "Ch%d", i); in renderScreen()
1054 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "ADDR "); in renderScreen()
1055 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "TX-STAT "); in renderScreen()
1056 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "TYPE "); in renderScreen()
1057 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "FORMAT "); in renderScreen()
1058 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "RATE "); in renderScreen()
1059 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "BUTTON "); in renderScreen()
[all …]
Ddummy_checker.c461 s16 x; in renderStatus() local
472 x = X_START; in renderStatus()
475 DEMOPrintf(x, y, 0, "WPAD Demo -- Dummy checker"); in renderStatus()
478 DEMOPrintf(x, y, 0, "Status :"); y+=FONT_HEIGHT; in renderStatus()
479 DEMOPrintf(x, y, 0, "Type :"); y+=FONT_HEIGHT; in renderStatus()
480 DEMOPrintf(x, y, 0, "Buttons:"); y+=FONT_HEIGHT; in renderStatus()
481 DEMOPrintf(x, y, 0, "DPD0-xy:"); y+=FONT_HEIGHT; in renderStatus()
482 DEMOPrintf(x, y, 0, "DPD1-xy:"); y+=FONT_HEIGHT; in renderStatus()
483 DEMOPrintf(x, y, 0, "ACC-XYZ:"); y+=FONT_HEIGHT; in renderStatus()
484 DEMOPrintf(x, y, 0, "--------"); y+=FONT_HEIGHT; in renderStatus()
[all …]
/RvlSDK-3.2.2/build/libraries/kpadOld/src/
DKPAD.c222 if ( kp->center_org.x < 0.0f ) { in calc_dpd2pos_scale()
223 sx += kp->center_org.x ; in calc_dpd2pos_scale()
225 sx -= kp->center_org.x ; in calc_dpd2pos_scale()
271 sp->horizon.x = kp->acc_horizon.x = kp->obj_horizon.x = 1.0f ; in reset_kpad()
276 sp->acc_vertical.x = 1.0f ; in reset_kpad()
287 sp->acc.x = sp->acc.z = 0.0f ; in reset_kpad()
335 ep->fs.acc.x = ep->fs.acc.z = 0.0f ; in reset_kpad()
364 (*dst).x = src->x * (projection_height / 2.0f) * 1.2f; in KPADGetProjectionPos()
367 (*dst).x *= viRatio * 0.908; in KPADGetProjectionPos()
388 vx = kp->hard_acc.x ; in KPADCalibrateDPD()
[all …]
/RvlSDK-3.2.2/build/demos/gxdemo/src/Tev/
Dtev-multi.c46 #define ALI_COL(x) (x * 68 + 48) argument
521 u32 x; in DrawTexMapPanels() local
528 for ( x = 0 ; x < NUM_TEVSTAGES ; ++x ) in DrawTexMapPanels()
534 MapIDTbl[tevc[CTRL_TM][x]], in DrawTexMapPanels()
537 MTXTrans(mt, (f32)ALI_COL(x), (f32)ALI_ROW(0), 0); in DrawTexMapPanels()
555 u32 x; in DrawTexCoordPanels() local
562 for ( x = 0 ; x < NUM_TEVSTAGES ; ++x ) in DrawTexCoordPanels()
566 CoordIDTbl[tevc[CTRL_TC][x]], in DrawTexCoordPanels()
567 MapIDTbl[tevc[CTRL_TM][x]], in DrawTexCoordPanels()
570 MTXTrans(mt, (f32)ALI_COL(x), (f32)ALI_ROW(1), 0); in DrawTexCoordPanels()
[all …]
/RvlSDK-3.2.2/build/demos/kpaddemo/src/
Dswing.c245 dir_nrm.x = 1.0f ; in init_sample()
251 last_acc.x = last_acc.y = last_acc.z = in init_sample()
252 acc_vec.x = acc_vec.y = acc_vec.z = in init_sample()
253 dir_vec.x = dir_vec.y = dir_vec.z = in init_sample()
280 if ( new_acc.x < -ACC_MAX || new_acc.x > ACC_MAX ) { in work_sample()
281 new_acc.x = ( acc_vec.x *= ACC_DAMP ) + last_acc.x ; in work_sample()
283 acc_vec.x = new_acc.x - last_acc.x ; in work_sample()
300 dir_vec.x *= DIR_VEC_DAMP ; in work_sample()
309 dir_vec.x += f1 * acc_vec.x ; in work_sample()
319 f1 = sqrtf( dir_vec.x * dir_vec.x + dir_vec.y * dir_vec.y + dir_vec.z * dir_vec.z ) ; in work_sample()
[all …]
Dkfont.c227 f32 x ; in draw_kfont_s32() local
240 x = cx ; in draw_kfont_s32()
243 draw_kfont_one( x, cy, (char)('0'+ a ) ) ; in draw_kfont_s32()
244 x -= 1.0f ; in draw_kfont_s32()
252 draw_kfont_one( x, cy, '-' ) ; in draw_kfont_s32()
266 f32 x, vf ; in draw_kfont_f32() local
290 x = cx + 1.0f + (f32)k ; in draw_kfont_f32()
294 draw_kfont_one( x, cy, (char)('0'+ a ) ) ; in draw_kfont_f32()
295 x -= 1.0f ; in draw_kfont_f32()
301 draw_kfont_one( x, cy, '.' ) ; in draw_kfont_f32()
[all …]
/RvlSDK-3.2.2/build/tools/darch/include/
Ddarch.h91 #define roundUp4B(x) (((unsigned int)(x) + 4 - 1) & \ argument
93 #define roundUp32B(x) (((unsigned int)(x) + 32 - 1) & \ argument
155 #define RoundUp32B(x) (((u32)(x) + 32 - 1) & ~(32 - 1)) argument
156 #define RoundDown32B(x) (((u32)(x)) & ~(32 - 1)) argument
158 #define RoundUp4B(x) (((u32)(x) + 4 - 1) & ~(4 - 1)) argument
159 #define RoundDown4B(x) (((u32)(x)) & ~(4 - 1)) argument
185 #define MIN(x, y) (((x) < (y))? (x) : (y)) argument
/RvlSDK-3.2.2/build/libraries/kpad/src/
DKPAD.c367 if ( kp->center_org.x < 0.0f ) { in calc_dpd2pos_scale()
368 sx += kp->center_org.x ; in calc_dpd2pos_scale()
370 sx -= kp->center_org.x ; in calc_dpd2pos_scale()
397 kp->kobj_frame_min.x = -1.0f + kp_err_outside_frame ; in reset_kpad()
398 kp->kobj_frame_max.x = 1.0f - kp_err_outside_frame ; in reset_kpad()
421 sp->horizon.x = kp->acc_horizon.x = kp->obj_horizon.x = 1.0f ; in reset_kpad()
426 sp->acc_vertical.x = 1.0f ; in reset_kpad()
437 sp->acc.x = sp->acc.z = 0.0f ; in reset_kpad()
475 (*dst).x = src->x * (projection_height / 2.0f) * 1.2f ; in KPADGetProjectionPos()
478 (*dst).x *= viRatio * 0.908 ; in KPADGetProjectionPos()
[all …]
/RvlSDK-3.2.2/build/libraries/mtx/src/
Dquat.c86 r->x = p->x + q->x; in C_QUATAdd()
142 r->x = p->x - q->x; in C_QUATSubtract()
211 r->w = p->w*q->w - p->x*q->x - p->y*q->y - p->z*q->z; in C_QUATMultiply()
212 r->x = p->w*q->x + p->x*q->w + p->y*q->z - p->z*q->y; in C_QUATMultiply()
213 r->y = p->w*q->y + p->y*q->w + p->z*q->x - p->x*q->z; in C_QUATMultiply()
214 r->z = p->w*q->z + p->z*q->w + p->x*q->y - p->y*q->x; in C_QUATMultiply()
314 r->x = q->x * scale; in C_QUATScale()
365 return (q->x*p->x + q->y*p->y + q->z*p->z + q->w*p->w); in C_QUATDotProduct()
415 mag = (src->x * src->x) + (src->y * src->y) + (src->z * src->z) + (src->w * src->w); in C_QUATNormalize()
421 unit->x = src->x * mag; in C_QUATNormalize()
[all …]
Dvec.c119 ab->x = a->x + b->x; in C_VECAdd()
188 a_b->x = a->x - b->x; in C_VECSubtract()
257 dst->x = src->x * scale; in C_VECScale()
325 mag = (src->x * src->x) + (src->y * src->y) + (src->z * src->z); in C_VECNormalize()
331 unit->x = src->x * mag; in C_VECNormalize()
413 sqmag = (v->x * v->x) + (v->y * v->y) + (v->z * v->z); in C_VECSquareMag()
549 dot = (a->x * b->x) + (a->y * b->y) + (a->z * b->z); in C_VECDotProduct()
613 vTmp.x = ( a->y * b->z ) - ( a->z * b->y ); in C_VECCrossProduct()
614 vTmp.y = ( a->z * b->x ) - ( a->x * b->z ); in C_VECCrossProduct()
615 vTmp.z = ( a->x * b->y ) - ( a->y * b->x ); in C_VECCrossProduct()
[all …]
Dmtxvec.c77 vTmp.x = m[0][0]*src->x + m[0][1]*src->y + m[0][2]*src->z + m[0][3]; in C_MTXMultVec()
78 vTmp.y = m[1][0]*src->x + m[1][1]*src->y + m[1][2]*src->z + m[1][3]; in C_MTXMultVec()
79 vTmp.z = m[2][0]*src->x + m[2][1]*src->y + m[2][2]*src->z + m[2][3]; in C_MTXMultVec()
82 dst->x = vTmp.x; in C_MTXMultVec()
182 vTmp.x = m[0][0]*srcBase->x + m[0][1]*srcBase->y + m[0][2]*srcBase->z + m[0][3]; in C_MTXMultVecArray()
183 vTmp.y = m[1][0]*srcBase->x + m[1][1]*srcBase->y + m[1][2]*srcBase->z + m[1][3]; in C_MTXMultVecArray()
184 vTmp.z = m[2][0]*srcBase->x + m[2][1]*srcBase->y + m[2][2]*srcBase->z + m[2][3]; in C_MTXMultVecArray()
187 dstBase->x = vTmp.x; in C_MTXMultVecArray()
324 vTmp.x = m[0][0]*src->x + m[0][1]*src->y + m[0][2]*src->z; in C_MTXMultVecSR()
325 vTmp.y = m[1][0]*src->x + m[1][1]*src->y + m[1][2]*src->z; in C_MTXMultVecSR()
[all …]
/RvlSDK-3.2.2/build/tools/TexConv/sample/
Dsample.tcs89 image 3 = 1, x, CI8 ; when source format is CI8 (file 2) and dest. format is CI8,
91 ; 'x' indicates unused component ( no alpha for this image )
94 image 4 = 1, x, RGB565, 0, 7, 0 ; when source format is CI8 and dest. format is true color,
104 image 6 = 2, x, RGBA8, 0, 7, 0 ; image 6 has no alpha channel: destination image will have
107 image 7 = 2, x, RGB565, 0, 7, 0,
108 image 8 = 2, x, CMPR, 0, 7, 0
111 image 10 = 0, x, I4, 0, 7, 0 ; color images are reduced to greyscale by averaging color va…
113 image 12 = 2, x, I8, 0, 7, 0
119 image 14 = 2, x, CMPR, GX_REPEAT, GX_CLAMP ; set wrapS to repeat and set wrapT to cla…
120 image 15 = 2, x, CMPR, 0, 7, 0, GX_CLAMP, GX_MIRROR ; set wrapS to clamp and set wrapT to mirr…
[all …]
/RvlSDK-3.2.2/build/demos/gddemo/src/
Dgd-matrix-host.c45 #define OSRoundUp32B(x) (((u32)(x) + 31) & ~31) argument
46 #define OSAlloc(x) ((void*)OSRoundUp32B(malloc((x)+31))) argument
47 #define OSFree(x) free(x) argument
Dgd-init-host.c46 #define OSRoundUp32B(x) (((u32)(x) + 31) & ~31) argument
47 #define OSAlloc(x) ((void*)OSRoundUp32B(malloc((x)+31))) argument
48 #define OSFree(x) free(x) argument
/RvlSDK-3.2.2/build/demos/videmo/src/
Dcross-color.c117 int x, y, f; in YuvCircle() local
119 x = r; in YuvCircle()
123 while (x >= y) { in YuvCircle()
124 YuvPset(posX + x, posY + y, width, xfb, luma, u, v); in YuvCircle()
125 YuvPset(posX - x, posY + y, width, xfb, luma, u, v); in YuvCircle()
126 YuvPset(posX + x, posY - y, width, xfb, luma, u, v); in YuvCircle()
127 YuvPset(posX - x, posY - y, width, xfb, luma, u, v); in YuvCircle()
128 YuvPset(posX + y, posY + x, width, xfb, luma, u, v); in YuvCircle()
129 YuvPset(posX - y, posY + x, width, xfb, luma, u, v); in YuvCircle()
130 YuvPset(posX + y, posY - x, width, xfb, luma, u, v); in YuvCircle()
[all …]
/RvlSDK-3.2.2/build/tools/soundfile/src/
Dendian.c28 u32 reverse_endian_32(u32 x) in reverse_endian_32() argument
31 ((x >> 24) & 0x000000ff) | in reverse_endian_32()
32 ((x >> 8) & 0x0000ff00) | in reverse_endian_32()
33 ((x << 8) & 0x00ff0000) | in reverse_endian_32()
34 ((x << 24) & 0xff000000) in reverse_endian_32()
/RvlSDK-3.2.2/build/tools/dspadpcm/src/
Dendian.c28 u32 reverse_endian_32(u32 x) in reverse_endian_32() argument
31 ((x >> 24) & 0x000000ff) | in reverse_endian_32()
32 ((x >> 8) & 0x0000ff00) | in reverse_endian_32()
33 ((x << 8) & 0x00ff0000) | in reverse_endian_32()
34 ((x << 24) & 0xff000000) in reverse_endian_32()
/RvlSDK-3.2.2/build/tools/sndconv/src/
Dendian.c28 u32 reverse_endian_32(u32 x) in reverse_endian_32() argument
31 ((x >> 24) & 0x000000ff) | in reverse_endian_32()
32 ((x >> 8) & 0x0000ff00) | in reverse_endian_32()
33 ((x << 8) & 0x00ff0000) | in reverse_endian_32()
34 ((x << 24) & 0xff000000) in reverse_endian_32()
/RvlSDK-3.2.2/build/demos/kpadOlddemo/src/
Dkfont.c227 f32 x ; in draw_kfont_s32() local
240 x = cx ; in draw_kfont_s32()
243 draw_kfont_one( x, cy, (char)('0'+ a ) ) ; in draw_kfont_s32()
244 x -= 1.0f ; in draw_kfont_s32()
252 draw_kfont_one( x, cy, '-' ) ; in draw_kfont_s32()
266 f32 x, vf ; in draw_kfont_f32() local
290 x = cx + 1.0f + (f32)k ; in draw_kfont_f32()
294 draw_kfont_one( x, cy, (char)('0'+ a ) ) ; in draw_kfont_f32()
295 x -= 1.0f ; in draw_kfont_f32()
301 draw_kfont_one( x, cy, '.' ) ; in draw_kfont_f32()
[all …]

1234567