Home
last modified time | relevance | path

Searched refs:PVRTXDIV (Results 1 – 3 of 3) sorted by relevance

/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTQuaternionX.cpp98 vAxis.x = PVRTXDIV(qIn.x, fSinAngle); in PVRTMatrixQuaternionToAxisAngleX()
99 vAxis.y = PVRTXDIV(qIn.y, fSinAngle); in PVRTMatrixQuaternionToAxisAngleX()
100 vAxis.z = PVRTXDIV(qIn.z, fSinAngle); in PVRTMatrixQuaternionToAxisAngleX()
173 A = PVRTXDIV(PVRTXSIN(PVRTXMUL((PVRTF2X(1.0f)-t), fAngle)), PVRTXSIN(fAngle)); in PVRTMatrixQuaternionSlerpX()
174 B = PVRTXDIV(PVRTXSIN(PVRTXMUL(t, fAngle)), PVRTXSIN(fAngle)); in PVRTMatrixQuaternionSlerpX()
200 qTemp.w = PVRTXDIV(quat.w, n); in PVRTMatrixQuaternionNormalizeX()
201 qTemp.x = PVRTXDIV(quat.x, n); in PVRTMatrixQuaternionNormalizeX()
202 qTemp.y = PVRTXDIV(quat.y, n); in PVRTMatrixQuaternionNormalizeX()
203 qTemp.z = PVRTXDIV(quat.z, n); in PVRTMatrixQuaternionNormalizeX()
207 f = PVRTXDIV(PVRTF2X(1.0f), PVRTF2X(sqrt(PVRTX2F(f)))); in PVRTMatrixQuaternionNormalizeX()
DPVRTMatrixX.cpp295 det_1 = PVRTXDIV(PVRTF2X(1.0f), det_1); in PVRTMatrixInverseX()
485 fRealAspect = PVRTXDIV(PVRTF2X(1.0f), fAspect); in PVRTMatrixPerspectiveFovLHX()
489 f = PVRTXDIV(PVRTF2X(1.0f), PVRTXTAN(PVRTXMUL(fFOVy, PVRTF2X(0.5f)))); in PVRTMatrixPerspectiveFovLHX()
491 mOut.f[ 0] = PVRTXDIV(f, fRealAspect); in PVRTMatrixPerspectiveFovLHX()
503 mOut.f[10] = PVRTXDIV(fFar, fFar - fNear); in PVRTMatrixPerspectiveFovLHX()
508 mOut.f[14] = -PVRTXMUL(PVRTXDIV(fFar, fFar - fNear), fNear); in PVRTMatrixPerspectiveFovLHX()
542 fCorrectAspect = PVRTXDIV(PVRTF2X(1.0f), fAspect); in PVRTMatrixPerspectiveFovRHX()
544 f = PVRTXDIV(PVRTF2X(1.0f), PVRTXTAN(PVRTXMUL(fFOVy, PVRTF2X(0.5f)))); in PVRTMatrixPerspectiveFovRHX()
546 mOut.f[ 0] = PVRTXDIV(f, fCorrectAspect); in PVRTMatrixPerspectiveFovRHX()
558 mOut.f[10] = PVRTXDIV(fFar + fNear, fNear - fFar); in PVRTMatrixPerspectiveFovRHX()
[all …]
DPVRTFixedPoint.h27 #define PVRTXDIV(a,b) ( (int)( (((PVRTint64)(a))<<16)/(b) ) ) macro
45 #define PVRTXCOS(x) (cos_val[(PVRTXMUL(((PVRTXDIV((x)<0? -(x):(x), PVRT_TWO_PIx)) & 0x0000FFFF), (…
46 #define PVRTXSIN(x) (sin_val[(PVRTXMUL(((PVRTXDIV((x)<0 ? PVRT_PIx-(x):(x), PVRT_TWO_PIx)) & 0x000…
47 …(x)<0 ? -tan_val[(PVRTXMUL(((PVRTXDIV(-(x), PVRT_TWO_PIx)) & 0x0000FFFF), (NUM_ENTRIES-1)))] : tan…
75 #define VERTTYPEDIV(a,b) PVRTXDIV(a,b)