Home
last modified time | relevance | path

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

12345678

/RvlSDK-3.3/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.3/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.3/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.3/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.3/build/demos/wpaddemo/src/
Dmplus.c111 static void myPrint ( int x, int y, int z, char *fmt, ... );
434 static void myPrint( int x, int y, int z, char *fmt, ... ) in myPrint() argument
445 DEMORFPrintf((s16)x, (s16)y, (s16)z, "%s", string); in myPrint()
449 DEMOPrintf((s16)x, (s16)y, (s16)z, "%s", string); in myPrint()
606 s16 x = X0_START; in renderStatus() local
612 myPrint(x, y, 0, "------------------------------"); y+=FONT_HEIGHT; in renderStatus()
613 myPrint(x, y, 0, "Status :"); y+=FONT_HEIGHT; in renderStatus()
614 myPrint(x, y, 0, "Type :"); y+=FONT_HEIGHT; in renderStatus()
615 myPrint(x, y, 0, "Err :"); y+=FONT_HEIGHT; in renderStatus()
616 myPrint(x, y, 0, "Buttons:"); y+=FONT_HEIGHT; in renderStatus()
[all …]
Ddummy_checker.c464 s16 x; in renderStatus() local
475 x = X_START; in renderStatus()
478 DEMOPrintf(x, y, 0, "WPAD Demo -- Dummy checker"); in renderStatus()
481 DEMOPrintf(x, y, 0, "Status :"); y+=FONT_HEIGHT; in renderStatus()
482 DEMOPrintf(x, y, 0, "Type :"); y+=FONT_HEIGHT; in renderStatus()
483 DEMOPrintf(x, y, 0, "Buttons:"); y+=FONT_HEIGHT; in renderStatus()
484 DEMOPrintf(x, y, 0, "DPD0-xy:"); y+=FONT_HEIGHT; in renderStatus()
485 DEMOPrintf(x, y, 0, "DPD1-xy:"); y+=FONT_HEIGHT; in renderStatus()
486 DEMOPrintf(x, y, 0, "ACC-XYZ:"); y+=FONT_HEIGHT; in renderStatus()
487 DEMOPrintf(x, y, 0, "--------"); y+=FONT_HEIGHT; in renderStatus()
[all …]
Dwpadsample.c1086 xDiff = (f32)(wpad->obj[0].x - wpad->obj[1].x); in getDistance()
1111 s16 x = X_START; in renderScreen() local
1115 DEMOPrintf(x, y, 0, "WPAD Demo -- WPADSAMPLE"); in renderScreen()
1121 DEMOPrintf((s16)(x + CHAN_INDENT * i + ITEM_WIDTH), y, 0, "Ch%d", i); in renderScreen()
1124 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "ADDR "); in renderScreen()
1125 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "TX-STAT "); in renderScreen()
1126 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "TYPE "); in renderScreen()
1127 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "FORMAT "); in renderScreen()
1128 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "RATE "); in renderScreen()
1129 DEMOPrintf(x, y+=FONT_HEIGHT, 0, "BUTTON "); in renderScreen()
[all …]
/RvlSDK-3.3/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.3/build/demos/kpaddemo/src/
Dweight.c174 s16 x = 20 ; in renderStatus() local
190 DEMOPrintf( x, y, 0, "WBC is not connected." ) ; in renderStatus()
194 DEMOPrintf( x, y += FONT_HEIGHT, 0, "WBC is not registered." ) ; in renderStatus()
195 DEMOPrintf( x, y += FONT_HEIGHT, 0, "Please regist WBC with SYNC button." ) ; in renderStatus()
207 x = 180 ; in renderStatus()
210 DEMOPrintf( x, y+=FONT_HEIGHT, 0, "+--------------+" ) ; in renderStatus()
211 DEMOPrintf( x, y+=FONT_HEIGHT, 0, "| Weight |" ) ; in renderStatus()
212 DEMOPrintf( x, y+=FONT_HEIGHT, 0, "+--------------+" ) ; in renderStatus()
213 … DEMOPrintf( x, y+=FONT_HEIGHT, 0, "Wt : %3.1f[kg]", ( kpads[0].ex_status.bl.weight[0] \ in renderStatus()
219 … case KPAD_WBC_ERR_EXIST : DEMOPrintf( x, y, 0, "Err: EXIST" ) ; break ; in renderStatus()
[all …]
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.c234 f32 x ; in draw_kfont_s32() local
247 x = cx ; in draw_kfont_s32()
250 draw_kfont_one( x, cy, (char)('0'+ a ) ) ; in draw_kfont_s32()
251 x -= 1.0f ; in draw_kfont_s32()
259 draw_kfont_one( x, cy, '-' ) ; in draw_kfont_s32()
273 f32 x, vf ; in draw_kfont_f32() local
297 x = cx + 1.0f + (f32)k ; in draw_kfont_f32()
301 draw_kfont_one( x, cy, (char)('0'+ a ) ) ; in draw_kfont_f32()
302 x -= 1.0f ; in draw_kfont_f32()
308 draw_kfont_one( x, cy, '.' ) ; in draw_kfont_f32()
[all …]
/RvlSDK-3.3/include/revolution/
DwpadBulk.h49 #define WPAD_IS_BULK_DEVICE(x) ( x == WPAD_DEV_BULK_01 \ argument
50 || x == WPAD_DEV_BULK_02 \
51 || x == WPAD_DEV_BULK_03 \
52 || x == WPAD_DEV_BULK_04 \
53 || x == WPAD_DEV_BULK_05 \
54 || x == WPAD_DEV_BULK_06 \
55 || x == WPAD_DEV_BULK_07 \
56 || x == WPAD_DEV_BULK_08 )
/RvlSDK-3.3/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.3/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.3/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 …]
Dmtx44vec.c81 vTmp.x = m[0][0]*src->x + m[0][1]*src->y + m[0][2]*src->z + m[0][3]; in C_MTX44MultVec()
82 vTmp.y = m[1][0]*src->x + m[1][1]*src->y + m[1][2]*src->z + m[1][3]; in C_MTX44MultVec()
83 vTmp.z = m[2][0]*src->x + m[2][1]*src->y + m[2][2]*src->z + m[2][3]; in C_MTX44MultVec()
84 w = m[3][0]*src->x + m[3][1]*src->y + m[3][2]*src->z + m[3][3]; in C_MTX44MultVec()
88 dst->x = vTmp.x * w; in C_MTX44MultVec()
170 vTmp.x = m[0][0]*srcBase->x + m[0][1]*srcBase->y + m[0][2]*srcBase->z + m[0][3]; in C_MTX44MultVecArray()
171 vTmp.y = m[1][0]*srcBase->x + m[1][1]*srcBase->y + m[1][2]*srcBase->z + m[1][3]; in C_MTX44MultVecArray()
172 vTmp.z = m[2][0]*srcBase->x + m[2][1]*srcBase->y + m[2][2]*srcBase->z + m[2][3]; in C_MTX44MultVecArray()
173 w = m[3][0]*srcBase->x + m[3][1]*srcBase->y + m[3][2]*srcBase->z + m[3][3]; in C_MTX44MultVecArray()
177 dstBase->x = vTmp.x * w; in C_MTX44MultVecArray()
[all …]
/RvlSDK-3.3/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.3/build/demos/hbmdemo/rsodemo/src/
Drsomodule.c349 pHbmInfo->adjust.x = 1.0f; in InitHomeButtonInfo()
363 pHbmInfo->adjust.x = 1.0f; in SetAdjustValue()
369 pHbmInfo->adjust.x = 832.f / 608.f; in SetAdjustValue()
431 pConData->wiiCon[i].pos.x = 0.f; in InitControllerData()
447 f32 x,y; in calcAnalogCursorPos() local
448 x = ( stickX / scStickMoveCoe ); in calcAnalogCursorPos()
450 x = AbsClamp( x, 1.0f ); in calcAnalogCursorPos()
452 if( x == 0.0f && y == 0.0f ) return FALSE; in calcAnalogCursorPos()
453 pos->x = AbsClamp( pos->x + x, 1.0f ); in calcAnalogCursorPos()
468 case KPAD_CL_BUTTON_LEFT: pos->x-=spd; break; in calcDigitalCursorPos()
[all …]
Drsodemo.cpp621 posAdjust.x = 1.0f; in main()
627 posAdjust.x = 832.f / 608.f; in main()
654 pos[i].x = kpad_status[i].pos.x; in main()
656 pos[i].x *= pRm->fbWidth * 0.5f; in main()
658 pos[i].x *= posAdjust.x; in main()
663 GXPosition2f32( -10 + pos[i].x, -10 - pos[i].y ); in main()
665 GXPosition2f32( -10 + pos[i].x, 10 - pos[i].y ); in main()
667 GXPosition2f32( 10 + pos[i].x, 10 - pos[i].y ); in main()
669 GXPosition2f32( 10 + pos[i].x, -10 - pos[i].y ); in main()
976 f32 x,y; in calcAnalogCursorPos() local
[all …]
/RvlSDK-3.3/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.3/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
/RvlSDK-3.3/build/demos/hbmdemo/hbm/src/
Dhomebutton.cpp468 pHbmInfo->adjust.x = 1.0f; in InitHomeButtonInfo()
510 pConData->wiiCon[i].pos.x = 0.f; in InitControllerData()
525 f32 x,y; in calcAnalogCursorPos() local
526 x = ( stickX / scStickMoveCoe ); in calcAnalogCursorPos()
528 x = AbsClamp( x, 1.0f ); in calcAnalogCursorPos()
530 if( x == 0.0f && y == 0.0f ) return FALSE; in calcAnalogCursorPos()
531 pos->x = AbsClamp( pos->x + x, 1.0f ); in calcAnalogCursorPos()
546 case KPAD_CL_BUTTON_LEFT: pos->x-=spd; break; in calcDigitalCursorPos()
548 case KPAD_CL_BUTTON_RIGHT: pos->x+=spd; break; in calcDigitalCursorPos()
549 case KPAD_CL_BUTTON_UP |KPAD_CL_BUTTON_LEFT: pos->y-=spd2; pos->x-=spd2; break; in calcDigitalCursorPos()
[all …]

12345678