Lines Matching refs:f
54 …mOut.f[ 0]=PVRTF2X(1.0f); mOut.f[ 4]=PVRTF2X(0.0f); mOut.f[ 8]=PVRTF2X(0.0f); mOut.f[12]=PVRTF2X(0… in PVRTMatrixIdentityX()
55 …mOut.f[ 1]=PVRTF2X(0.0f); mOut.f[ 5]=PVRTF2X(1.0f); mOut.f[ 9]=PVRTF2X(0.0f); mOut.f[13]=PVRTF2X(0… in PVRTMatrixIdentityX()
56 …mOut.f[ 2]=PVRTF2X(0.0f); mOut.f[ 6]=PVRTF2X(0.0f); mOut.f[10]=PVRTF2X(1.0f); mOut.f[14]=PVRTF2X(0… in PVRTMatrixIdentityX()
57 …mOut.f[ 3]=PVRTF2X(0.0f); mOut.f[ 7]=PVRTF2X(0.0f); mOut.f[11]=PVRTF2X(0.0f); mOut.f[15]=PVRTF2X(1… in PVRTMatrixIdentityX()
80 …mRet.f[ 0] = PVRTXMUL(mA.f[ 0], mB.f[ 0]) + PVRTXMUL(mA.f[ 1], mB.f[ 4]) + PVRTXMUL(mA.f[ 2], mB.f… in PVRTMatrixMultiplyX()
81 …mRet.f[ 1] = PVRTXMUL(mA.f[ 0], mB.f[ 1]) + PVRTXMUL(mA.f[ 1], mB.f[ 5]) + PVRTXMUL(mA.f[ 2], mB.f… in PVRTMatrixMultiplyX()
82 …mRet.f[ 2] = PVRTXMUL(mA.f[ 0], mB.f[ 2]) + PVRTXMUL(mA.f[ 1], mB.f[ 6]) + PVRTXMUL(mA.f[ 2], mB.f… in PVRTMatrixMultiplyX()
83 …mRet.f[ 3] = PVRTXMUL(mA.f[ 0], mB.f[ 3]) + PVRTXMUL(mA.f[ 1], mB.f[ 7]) + PVRTXMUL(mA.f[ 2], mB.f… in PVRTMatrixMultiplyX()
85 …mRet.f[ 4] = PVRTXMUL(mA.f[ 4], mB.f[ 0]) + PVRTXMUL(mA.f[ 5], mB.f[ 4]) + PVRTXMUL(mA.f[ 6], mB.f… in PVRTMatrixMultiplyX()
86 …mRet.f[ 5] = PVRTXMUL(mA.f[ 4], mB.f[ 1]) + PVRTXMUL(mA.f[ 5], mB.f[ 5]) + PVRTXMUL(mA.f[ 6], mB.f… in PVRTMatrixMultiplyX()
87 …mRet.f[ 6] = PVRTXMUL(mA.f[ 4], mB.f[ 2]) + PVRTXMUL(mA.f[ 5], mB.f[ 6]) + PVRTXMUL(mA.f[ 6], mB.f… in PVRTMatrixMultiplyX()
88 …mRet.f[ 7] = PVRTXMUL(mA.f[ 4], mB.f[ 3]) + PVRTXMUL(mA.f[ 5], mB.f[ 7]) + PVRTXMUL(mA.f[ 6], mB.f… in PVRTMatrixMultiplyX()
90 …mRet.f[ 8] = PVRTXMUL(mA.f[ 8], mB.f[ 0]) + PVRTXMUL(mA.f[ 9], mB.f[ 4]) + PVRTXMUL(mA.f[10], mB.f… in PVRTMatrixMultiplyX()
91 …mRet.f[ 9] = PVRTXMUL(mA.f[ 8], mB.f[ 1]) + PVRTXMUL(mA.f[ 9], mB.f[ 5]) + PVRTXMUL(mA.f[10], mB.f… in PVRTMatrixMultiplyX()
92 …mRet.f[10] = PVRTXMUL(mA.f[ 8], mB.f[ 2]) + PVRTXMUL(mA.f[ 9], mB.f[ 6]) + PVRTXMUL(mA.f[10], mB.f… in PVRTMatrixMultiplyX()
93 …mRet.f[11] = PVRTXMUL(mA.f[ 8], mB.f[ 3]) + PVRTXMUL(mA.f[ 9], mB.f[ 7]) + PVRTXMUL(mA.f[10], mB.f… in PVRTMatrixMultiplyX()
95 …mRet.f[12] = PVRTXMUL(mA.f[12], mB.f[ 0]) + PVRTXMUL(mA.f[13], mB.f[ 4]) + PVRTXMUL(mA.f[14], mB.f… in PVRTMatrixMultiplyX()
96 …mRet.f[13] = PVRTXMUL(mA.f[12], mB.f[ 1]) + PVRTXMUL(mA.f[13], mB.f[ 5]) + PVRTXMUL(mA.f[14], mB.f… in PVRTMatrixMultiplyX()
97 …mRet.f[14] = PVRTXMUL(mA.f[12], mB.f[ 2]) + PVRTXMUL(mA.f[13], mB.f[ 6]) + PVRTXMUL(mA.f[14], mB.f… in PVRTMatrixMultiplyX()
98 …mRet.f[15] = PVRTXMUL(mA.f[12], mB.f[ 3]) + PVRTXMUL(mA.f[13], mB.f[ 7]) + PVRTXMUL(mA.f[14], mB.f… in PVRTMatrixMultiplyX()
118 mOut.f[ 0]=PVRTF2X(1.0f); mOut.f[ 4]=PVRTF2X(0.0f); mOut.f[ 8]=PVRTF2X(0.0f); mOut.f[12]=fX; in PVRTMatrixTranslationX()
119 mOut.f[ 1]=PVRTF2X(0.0f); mOut.f[ 5]=PVRTF2X(1.0f); mOut.f[ 9]=PVRTF2X(0.0f); mOut.f[13]=fY; in PVRTMatrixTranslationX()
120 mOut.f[ 2]=PVRTF2X(0.0f); mOut.f[ 6]=PVRTF2X(0.0f); mOut.f[10]=PVRTF2X(1.0f); mOut.f[14]=fZ; in PVRTMatrixTranslationX()
121 …mOut.f[ 3]=PVRTF2X(0.0f); mOut.f[ 7]=PVRTF2X(0.0f); mOut.f[11]=PVRTF2X(0.0f); mOut.f[15]=PVRTF2X(1… in PVRTMatrixTranslationX()
138 mOut.f[ 0]=fX; mOut.f[ 4]=PVRTF2X(0.0f); mOut.f[ 8]=PVRTF2X(0.0f); mOut.f[12]=PVRTF2X(0.0f); in PVRTMatrixScalingX()
139 mOut.f[ 1]=PVRTF2X(0.0f); mOut.f[ 5]=fY; mOut.f[ 9]=PVRTF2X(0.0f); mOut.f[13]=PVRTF2X(0.0f); in PVRTMatrixScalingX()
140 mOut.f[ 2]=PVRTF2X(0.0f); mOut.f[ 6]=PVRTF2X(0.0f); mOut.f[10]=fZ; mOut.f[14]=PVRTF2X(0.0f); in PVRTMatrixScalingX()
141 …mOut.f[ 3]=PVRTF2X(0.0f); mOut.f[ 7]=PVRTF2X(0.0f); mOut.f[11]=PVRTF2X(0.0f); mOut.f[15]=PVRTF2X(1… in PVRTMatrixScalingX()
166 …mOut.f[ 0]=PVRTF2X(1.0f); mOut.f[ 4]=PVRTF2X(0.0f); mOut.f[ 8]=PVRTF2X(0.0f); mOut.f[12]=PVRTF2X… in PVRTMatrixRotationXX()
167 mOut.f[ 1]=PVRTF2X(0.0f); mOut.f[ 5]=fCosine; mOut.f[ 9]=fSine; mOut.f[13]=PVRTF2X(0.0f); in PVRTMatrixRotationXX()
168 mOut.f[ 2]=PVRTF2X(0.0f); mOut.f[ 6]=-fSine; mOut.f[10]=fCosine; mOut.f[14]=PVRTF2X(0.0f); in PVRTMatrixRotationXX()
169 …mOut.f[ 3]=PVRTF2X(0.0f); mOut.f[ 7]=PVRTF2X(0.0f); mOut.f[11]=PVRTF2X(0.0f); mOut.f[15]=PVRTF2X… in PVRTMatrixRotationXX()
194 mOut.f[ 0]=fCosine; mOut.f[ 4]=PVRTF2X(0.0f); mOut.f[ 8]=-fSine; mOut.f[12]=PVRTF2X(0.0f); in PVRTMatrixRotationYX()
195 …mOut.f[ 1]=PVRTF2X(0.0f); mOut.f[ 5]=PVRTF2X(1.0f); mOut.f[ 9]=PVRTF2X(0.0f); mOut.f[13]=PVRTF2X… in PVRTMatrixRotationYX()
196 mOut.f[ 2]=fSine; mOut.f[ 6]=PVRTF2X(0.0f); mOut.f[10]=fCosine; mOut.f[14]=PVRTF2X(0.0f); in PVRTMatrixRotationYX()
197 …mOut.f[ 3]=PVRTF2X(0.0f); mOut.f[ 7]=PVRTF2X(0.0f); mOut.f[11]=PVRTF2X(0.0f); mOut.f[15]=PVRTF2X… in PVRTMatrixRotationYX()
222 mOut.f[ 0]=fCosine; mOut.f[ 4]=fSine; mOut.f[ 8]=PVRTF2X(0.0f); mOut.f[12]=PVRTF2X(0.0f); in PVRTMatrixRotationZX()
223 mOut.f[ 1]=-fSine; mOut.f[ 5]=fCosine; mOut.f[ 9]=PVRTF2X(0.0f); mOut.f[13]=PVRTF2X(0.0f); in PVRTMatrixRotationZX()
224 …mOut.f[ 2]=PVRTF2X(0.0f); mOut.f[ 6]=PVRTF2X(0.0f); mOut.f[10]=PVRTF2X(1.0f); mOut.f[14]=PVRTF2X… in PVRTMatrixRotationZX()
225 …mOut.f[ 3]=PVRTF2X(0.0f); mOut.f[ 7]=PVRTF2X(0.0f); mOut.f[11]=PVRTF2X(0.0f); mOut.f[15]=PVRTF2X… in PVRTMatrixRotationZX()
240 mTmp.f[ 0]=mIn.f[ 0]; mTmp.f[ 4]=mIn.f[ 1]; mTmp.f[ 8]=mIn.f[ 2]; mTmp.f[12]=mIn.f[ 3]; in PVRTMatrixTransposeX()
241 mTmp.f[ 1]=mIn.f[ 4]; mTmp.f[ 5]=mIn.f[ 5]; mTmp.f[ 9]=mIn.f[ 6]; mTmp.f[13]=mIn.f[ 7]; in PVRTMatrixTransposeX()
242 mTmp.f[ 2]=mIn.f[ 8]; mTmp.f[ 6]=mIn.f[ 9]; mTmp.f[10]=mIn.f[10]; mTmp.f[14]=mIn.f[11]; in PVRTMatrixTransposeX()
243 mTmp.f[ 3]=mIn.f[12]; mTmp.f[ 7]=mIn.f[13]; mTmp.f[11]=mIn.f[14]; mTmp.f[15]=mIn.f[15]; in PVRTMatrixTransposeX()
270 temp = PVRTXMUL(PVRTXMUL(mIn.f[ 0], mIn.f[ 5]), mIn.f[10]); in PVRTMatrixInverseX()
272 temp = PVRTXMUL(PVRTXMUL(mIn.f[ 4], mIn.f[ 9]), mIn.f[ 2]); in PVRTMatrixInverseX()
274 temp = PVRTXMUL(PVRTXMUL(mIn.f[ 8], mIn.f[ 1]), mIn.f[ 6]); in PVRTMatrixInverseX()
276 temp = PVRTXMUL(PVRTXMUL(-mIn.f[ 8], mIn.f[ 5]), mIn.f[ 2]); in PVRTMatrixInverseX()
278 temp = PVRTXMUL(PVRTXMUL(-mIn.f[ 4], mIn.f[ 1]), mIn.f[10]); in PVRTMatrixInverseX()
280 temp = PVRTXMUL(PVRTXMUL(-mIn.f[ 0], mIn.f[ 9]), mIn.f[ 6]); in PVRTMatrixInverseX()
296 …mDummyMatrix.f[ 0] = PVRTXMUL(( PVRTXMUL(mIn.f[ 5], mIn.f[10]) - PVRTXMUL(mIn.f[ 9], mIn.f[ 6]) … in PVRTMatrixInverseX()
297 …mDummyMatrix.f[ 1] = - PVRTXMUL(( PVRTXMUL(mIn.f[ 1], mIn.f[10]) - PVRTXMUL(mIn.f[ 9], mIn.f[ 2]) … in PVRTMatrixInverseX()
298 …mDummyMatrix.f[ 2] = PVRTXMUL(( PVRTXMUL(mIn.f[ 1], mIn.f[ 6]) - PVRTXMUL(mIn.f[ 5], mIn.f[ 2]) … in PVRTMatrixInverseX()
299 …mDummyMatrix.f[ 4] = - PVRTXMUL(( PVRTXMUL(mIn.f[ 4], mIn.f[10]) - PVRTXMUL(mIn.f[ 8], mIn.f[ 6]) … in PVRTMatrixInverseX()
300 …mDummyMatrix.f[ 5] = PVRTXMUL(( PVRTXMUL(mIn.f[ 0], mIn.f[10]) - PVRTXMUL(mIn.f[ 8], mIn.f[ 2]) … in PVRTMatrixInverseX()
301 …mDummyMatrix.f[ 6] = - PVRTXMUL(( PVRTXMUL(mIn.f[ 0], mIn.f[ 6]) - PVRTXMUL(mIn.f[ 4], mIn.f[ 2]) … in PVRTMatrixInverseX()
302 …mDummyMatrix.f[ 8] = PVRTXMUL(( PVRTXMUL(mIn.f[ 4], mIn.f[ 9]) - PVRTXMUL(mIn.f[ 8], mIn.f[ 5]) … in PVRTMatrixInverseX()
303 …mDummyMatrix.f[ 9] = - PVRTXMUL(( PVRTXMUL(mIn.f[ 0], mIn.f[ 9]) - PVRTXMUL(mIn.f[ 8], mIn.f[ 1]) … in PVRTMatrixInverseX()
304 …mDummyMatrix.f[10] = PVRTXMUL(( PVRTXMUL(mIn.f[ 0], mIn.f[ 5]) - PVRTXMUL(mIn.f[ 4], mIn.f[ 1]) … in PVRTMatrixInverseX()
307 …ummyMatrix.f[12] = - ( PVRTXMUL(mIn.f[12], mDummyMatrix.f[ 0]) + PVRTXMUL(mIn.f[13], mDummyMatrix.… in PVRTMatrixInverseX()
308 …ummyMatrix.f[13] = - ( PVRTXMUL(mIn.f[12], mDummyMatrix.f[ 1]) + PVRTXMUL(mIn.f[13], mDummyMatrix.… in PVRTMatrixInverseX()
309 …ummyMatrix.f[14] = - ( PVRTXMUL(mIn.f[12], mDummyMatrix.f[ 2]) + PVRTXMUL(mIn.f[13], mDummyMatrix.… in PVRTMatrixInverseX()
312 mDummyMatrix.f[ 3] = PVRTF2X(0.0f); in PVRTMatrixInverseX()
313 mDummyMatrix.f[ 7] = PVRTF2X(0.0f); in PVRTMatrixInverseX()
314 mDummyMatrix.f[11] = PVRTF2X(0.0f); in PVRTMatrixInverseX()
315 mDummyMatrix.f[15] = PVRTF2X(1.0f); in PVRTMatrixInverseX()
349 ppfRows[j][0] = c_mIdentity.f[i + 4 * j]; in PVRTMatrixInverseExX()
350 memcpy(&ppfRows[j][1], &mIn.f[j * 4], 4 * sizeof(float)); in PVRTMatrixInverseExX()
357 mTmp.f[i + 4 * j] = pfRes[j]; in PVRTMatrixInverseExX()
378 PVRTVECTOR3x f, vUpActual, s, u; in PVRTMatrixLookAtLHX() local
381 f.x = vEye.x - vAt.x; in PVRTMatrixLookAtLHX()
382 f.y = vEye.y - vAt.y; in PVRTMatrixLookAtLHX()
383 f.z = vEye.z - vAt.z; in PVRTMatrixLookAtLHX()
385 PVRTMatrixVec3NormalizeX(f, f); in PVRTMatrixLookAtLHX()
387 PVRTMatrixVec3CrossProductX(s, f, vUpActual); in PVRTMatrixLookAtLHX()
388 PVRTMatrixVec3CrossProductX(u, s, f); in PVRTMatrixLookAtLHX()
390 mOut.f[ 0] = s.x; in PVRTMatrixLookAtLHX()
391 mOut.f[ 1] = u.x; in PVRTMatrixLookAtLHX()
392 mOut.f[ 2] = -f.x; in PVRTMatrixLookAtLHX()
393 mOut.f[ 3] = PVRTF2X(0.0f); in PVRTMatrixLookAtLHX()
395 mOut.f[ 4] = s.y; in PVRTMatrixLookAtLHX()
396 mOut.f[ 5] = u.y; in PVRTMatrixLookAtLHX()
397 mOut.f[ 6] = -f.y; in PVRTMatrixLookAtLHX()
398 mOut.f[ 7] = PVRTF2X(0.0f); in PVRTMatrixLookAtLHX()
400 mOut.f[ 8] = s.z; in PVRTMatrixLookAtLHX()
401 mOut.f[ 9] = u.z; in PVRTMatrixLookAtLHX()
402 mOut.f[10] = -f.z; in PVRTMatrixLookAtLHX()
403 mOut.f[11] = PVRTF2X(0.0f); in PVRTMatrixLookAtLHX()
405 mOut.f[12] = PVRTF2X(0.0f); in PVRTMatrixLookAtLHX()
406 mOut.f[13] = PVRTF2X(0.0f); in PVRTMatrixLookAtLHX()
407 mOut.f[14] = PVRTF2X(0.0f); in PVRTMatrixLookAtLHX()
408 mOut.f[15] = PVRTF2X(1.0f); in PVRTMatrixLookAtLHX()
428 PVRTVECTOR3x f, vUpActual, s, u; in PVRTMatrixLookAtRHX() local
431 f.x = vAt.x - vEye.x; in PVRTMatrixLookAtRHX()
432 f.y = vAt.y - vEye.y; in PVRTMatrixLookAtRHX()
433 f.z = vAt.z - vEye.z; in PVRTMatrixLookAtRHX()
435 PVRTMatrixVec3NormalizeX(f, f); in PVRTMatrixLookAtRHX()
437 PVRTMatrixVec3CrossProductX(s, f, vUpActual); in PVRTMatrixLookAtRHX()
438 PVRTMatrixVec3CrossProductX(u, s, f); in PVRTMatrixLookAtRHX()
440 mOut.f[ 0] = s.x; in PVRTMatrixLookAtRHX()
441 mOut.f[ 1] = u.x; in PVRTMatrixLookAtRHX()
442 mOut.f[ 2] = -f.x; in PVRTMatrixLookAtRHX()
443 mOut.f[ 3] = PVRTF2X(0.0f); in PVRTMatrixLookAtRHX()
445 mOut.f[ 4] = s.y; in PVRTMatrixLookAtRHX()
446 mOut.f[ 5] = u.y; in PVRTMatrixLookAtRHX()
447 mOut.f[ 6] = -f.y; in PVRTMatrixLookAtRHX()
448 mOut.f[ 7] = PVRTF2X(0.0f); in PVRTMatrixLookAtRHX()
450 mOut.f[ 8] = s.z; in PVRTMatrixLookAtRHX()
451 mOut.f[ 9] = u.z; in PVRTMatrixLookAtRHX()
452 mOut.f[10] = -f.z; in PVRTMatrixLookAtRHX()
453 mOut.f[11] = PVRTF2X(0.0f); in PVRTMatrixLookAtRHX()
455 mOut.f[12] = PVRTF2X(0.0f); in PVRTMatrixLookAtRHX()
456 mOut.f[13] = PVRTF2X(0.0f); in PVRTMatrixLookAtRHX()
457 mOut.f[14] = PVRTF2X(0.0f); in PVRTMatrixLookAtRHX()
458 mOut.f[15] = PVRTF2X(1.0f); in PVRTMatrixLookAtRHX()
482 int f, fRealAspect; in PVRTMatrixPerspectiveFovLHX() local
489 f = PVRTXDIV(PVRTF2X(1.0f), PVRTXTAN(PVRTXMUL(fFOVy, PVRTF2X(0.5f)))); in PVRTMatrixPerspectiveFovLHX()
491 mOut.f[ 0] = PVRTXDIV(f, fRealAspect); in PVRTMatrixPerspectiveFovLHX()
492 mOut.f[ 1] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovLHX()
493 mOut.f[ 2] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovLHX()
494 mOut.f[ 3] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovLHX()
496 mOut.f[ 4] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovLHX()
497 mOut.f[ 5] = f; in PVRTMatrixPerspectiveFovLHX()
498 mOut.f[ 6] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovLHX()
499 mOut.f[ 7] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovLHX()
501 mOut.f[ 8] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovLHX()
502 mOut.f[ 9] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovLHX()
503 mOut.f[10] = PVRTXDIV(fFar, fFar - fNear); in PVRTMatrixPerspectiveFovLHX()
504 mOut.f[11] = PVRTF2X(1.0f); in PVRTMatrixPerspectiveFovLHX()
506 mOut.f[12] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovLHX()
507 mOut.f[13] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovLHX()
508 mOut.f[14] = -PVRTXMUL(PVRTXDIV(fFar, fFar - fNear), fNear); in PVRTMatrixPerspectiveFovLHX()
509 mOut.f[15] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovLHX()
537 int f; in PVRTMatrixPerspectiveFovRHX() local
544 f = PVRTXDIV(PVRTF2X(1.0f), PVRTXTAN(PVRTXMUL(fFOVy, PVRTF2X(0.5f)))); in PVRTMatrixPerspectiveFovRHX()
546 mOut.f[ 0] = PVRTXDIV(f, fCorrectAspect); in PVRTMatrixPerspectiveFovRHX()
547 mOut.f[ 1] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovRHX()
548 mOut.f[ 2] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovRHX()
549 mOut.f[ 3] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovRHX()
551 mOut.f[ 4] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovRHX()
552 mOut.f[ 5] = f; in PVRTMatrixPerspectiveFovRHX()
553 mOut.f[ 6] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovRHX()
554 mOut.f[ 7] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovRHX()
556 mOut.f[ 8] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovRHX()
557 mOut.f[ 9] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovRHX()
558 mOut.f[10] = PVRTXDIV(fFar + fNear, fNear - fFar); in PVRTMatrixPerspectiveFovRHX()
559 mOut.f[11] = PVRTF2X(-1.0f); in PVRTMatrixPerspectiveFovRHX()
561 mOut.f[12] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovRHX()
562 mOut.f[13] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovRHX()
563 mOut.f[14] = PVRTXMUL(PVRTXDIV(fFar, fNear - fFar), fNear) << 1; // Cheap 2x in PVRTMatrixPerspectiveFovRHX()
564 mOut.f[15] = PVRTF2X(0.0f); in PVRTMatrixPerspectiveFovRHX()
599 mOut.f[ 0] = PVRTXDIV(PVRTF2X(2.0f), fCorrectW); in PVRTMatrixOrthoLHX()
600 mOut.f[ 1] = PVRTF2X(0.0f); in PVRTMatrixOrthoLHX()
601 mOut.f[ 2] = PVRTF2X(0.0f); in PVRTMatrixOrthoLHX()
602 mOut.f[ 3] = PVRTF2X(0.0f); in PVRTMatrixOrthoLHX()
604 mOut.f[ 4] = PVRTF2X(0.0f); in PVRTMatrixOrthoLHX()
605 mOut.f[ 5] = PVRTXDIV(PVRTF2X(2.0f), fCorrectH); in PVRTMatrixOrthoLHX()
606 mOut.f[ 6] = PVRTF2X(0.0f); in PVRTMatrixOrthoLHX()
607 mOut.f[ 7] = PVRTF2X(0.0f); in PVRTMatrixOrthoLHX()
609 mOut.f[ 8] = PVRTF2X(0.0f); in PVRTMatrixOrthoLHX()
610 mOut.f[ 9] = PVRTF2X(0.0f); in PVRTMatrixOrthoLHX()
611 mOut.f[10] = PVRTXDIV(PVRTF2X(1.0f), zf - zn); in PVRTMatrixOrthoLHX()
612 mOut.f[11] = PVRTXDIV(zn, zn - zf); in PVRTMatrixOrthoLHX()
614 mOut.f[12] = PVRTF2X(0.0f); in PVRTMatrixOrthoLHX()
615 mOut.f[13] = PVRTF2X(0.0f); in PVRTMatrixOrthoLHX()
616 mOut.f[14] = PVRTF2X(0.0f); in PVRTMatrixOrthoLHX()
617 mOut.f[15] = PVRTF2X(1.0f); in PVRTMatrixOrthoLHX()
652 mOut.f[ 0] = PVRTXDIV(PVRTF2X(2.0f), fCorrectW); in PVRTMatrixOrthoRHX()
653 mOut.f[ 1] = PVRTF2X(0.0f); in PVRTMatrixOrthoRHX()
654 mOut.f[ 2] = PVRTF2X(0.0f); in PVRTMatrixOrthoRHX()
655 mOut.f[ 3] = PVRTF2X(0.0f); in PVRTMatrixOrthoRHX()
657 mOut.f[ 4] = PVRTF2X(0.0f); in PVRTMatrixOrthoRHX()
658 mOut.f[ 5] = PVRTXDIV(PVRTF2X(2.0f), fCorrectH); in PVRTMatrixOrthoRHX()
659 mOut.f[ 6] = PVRTF2X(0.0f); in PVRTMatrixOrthoRHX()
660 mOut.f[ 7] = PVRTF2X(0.0f); in PVRTMatrixOrthoRHX()
662 mOut.f[ 8] = PVRTF2X(0.0f); in PVRTMatrixOrthoRHX()
663 mOut.f[ 9] = PVRTF2X(0.0f); in PVRTMatrixOrthoRHX()
664 mOut.f[10] = PVRTXDIV(PVRTF2X(1.0f), zn - zf); in PVRTMatrixOrthoRHX()
665 mOut.f[11] = PVRTXDIV(zn, zn - zf); in PVRTMatrixOrthoRHX()
667 mOut.f[12] = PVRTF2X(0.0f); in PVRTMatrixOrthoRHX()
668 mOut.f[13] = PVRTF2X(0.0f); in PVRTMatrixOrthoRHX()
669 mOut.f[14] = PVRTF2X(0.0f); in PVRTMatrixOrthoRHX()
670 mOut.f[15] = PVRTF2X(1.0f); in PVRTMatrixOrthoRHX()
756 int f, n; in PVRTMatrixVec3NormalizeX() local
766 f = PVRTMatrixVec3DotProductX(vTemp, vTemp); in PVRTMatrixVec3NormalizeX()
767 f = PVRTXDIV(PVRTF2X(1.0f), PVRTF2X(sqrt(PVRTX2F(f)))); in PVRTMatrixVec3NormalizeX()
770 vOut.x = PVRTXMUL(vTemp.x, f); in PVRTMatrixVec3NormalizeX()
771 vOut.y = PVRTXMUL(vTemp.y, f); in PVRTMatrixVec3NormalizeX()
772 vOut.z = PVRTXMUL(vTemp.z, f); in PVRTMatrixVec3NormalizeX()
807 int f; in PVRTMatrixLinearEqSolveX() local
830 f = pSrc[nCnt-1][j]; in PVRTMatrixLinearEqSolveX()
832 pSrc[i][j] = f; in PVRTMatrixLinearEqSolveX()
840 f = PVRTXDIV(pSrc[j][nCnt], pSrc[nCnt-1][nCnt]); in PVRTMatrixLinearEqSolveX()
845 pSrc[j][k] -= PVRTXMUL(f, pSrc[nCnt-1][k]); in PVRTMatrixLinearEqSolveX()
857 f = pSrc[nCnt-1][0]; in PVRTMatrixLinearEqSolveX()
860 f -= PVRTXMUL(pSrc[nCnt-1][k], pRes[k-1]); in PVRTMatrixLinearEqSolveX()
863 f = PVRTXDIV(f, pSrc[nCnt-1][nCnt]); in PVRTMatrixLinearEqSolveX()
864 pRes[nCnt-1] = f; in PVRTMatrixLinearEqSolveX()