Home
last modified time | relevance | path

Searched refs:PVRTF2X (Results 1 – 5 of 5) sorted by relevance

/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTMatrixX.cpp35 PVRTF2X(1.0f), PVRTF2X(0.0f), PVRTF2X(0.0f), PVRTF2X(0.0f),
36 PVRTF2X(0.0f), PVRTF2X(1.0f), PVRTF2X(0.0f), PVRTF2X(0.0f),
37 PVRTF2X(0.0f), PVRTF2X(0.0f), PVRTF2X(1.0f), PVRTF2X(0.0f),
38 PVRTF2X(0.0f), PVRTF2X(0.0f), PVRTF2X(0.0f), PVRTF2X(1.0f)
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()
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()
[all …]
DPVRTQuaternionX.cpp35 qOut.x = PVRTF2X(0.0f); in PVRTMatrixQuaternionIdentityX()
36 qOut.y = PVRTF2X(0.0f); in PVRTMatrixQuaternionIdentityX()
37 qOut.z = PVRTF2X(0.0f); in PVRTMatrixQuaternionIdentityX()
38 qOut.w = PVRTF2X(1.0f); in PVRTMatrixQuaternionIdentityX()
87 temp = PVRTF2X(1.0f) - PVRTXMUL(fCosAngle, fCosAngle); in PVRTMatrixQuaternionToAxisAngleX()
88 fAngle = PVRTXMUL(PVRTXACOS(fCosAngle), PVRTF2X(2.0f)); in PVRTMatrixQuaternionToAxisAngleX()
89 fSinAngle = PVRTF2X(((float)sqrt(PVRTX2F(temp)))); in PVRTMatrixQuaternionToAxisAngleX()
92 if (PVRTABS(fSinAngle)<PVRTF2X(0.0005f)) in PVRTMatrixQuaternionToAxisAngleX()
94 fSinAngle = PVRTF2X(1.0f); in PVRTMatrixQuaternionToAxisAngleX()
122 if (t<PVRTF2X(0.0f) || t>PVRTF2X(1.0f)) in PVRTMatrixQuaternionSlerpX()
[all …]
DPVRTFixedPoint.h24 #define PVRTF2X(f) ( (int) ( (f)*(65536) ) ) macro
39 #define PVRT_PI_OVER_TWOx PVRTF2X(PVRT_PI_OVER_TWOf)
40 #define PVRT_PIx PVRTF2X(PVRT_PIf)
41 #define PVRT_TWO_PIx PVRTF2X(PVRT_TWO_PIf)
42 #define PVRT_ONEx PVRTF2X(PVRT_ONEf)
48 #define PVRTXACOS(x) (acos_val[PVRTXMUL(((((x) + PVRTF2X(1.0f))>>1) & 0x0000FFFF), (NUM_ENTRIES-1))…
54 #define PVRTFCOS(x) PVRTX2F(PVRTXCOS(PVRTF2X(x)))
55 #define PVRTFSIN(x) PVRTX2F(PVRTXSIN(PVRTF2X(x)))
56 #define PVRTFTAN(x) PVRTX2F(PVRTXTAN(PVRTF2X(x)))
57 #define PVRTFACOS(x) PVRTX2F(PVRTXACOS(PVRTF2X(x)))
[all …]
DPVRTFixedPoint.cpp37 new_mesh->fCenter[0] = PVRTF2X(mesh->fCenter[0]); in CreateFixedObjectMesh()
38 new_mesh->fCenter[1] = PVRTF2X(mesh->fCenter[1]); in CreateFixedObjectMesh()
39 new_mesh->fCenter[2] = PVRTF2X(mesh->fCenter[2]); in CreateFixedObjectMesh()
51 new_mesh->pVertex[i] = PVRTF2X(mesh->pVertex[i]); in CreateFixedObjectMesh()
63 new_mesh->pUV[i] = PVRTF2X(mesh->pUV[i]); in CreateFixedObjectMesh()
72 new_mesh->pNormals[i] = PVRTF2X(mesh->pNormals[i]); in CreateFixedObjectMesh()
99 new_mesh->pPackedVertex[i] = PVRTF2X(mesh->pPackedVertex[i]); in CreateFixedObjectMesh()
DPVRTVector.h581 f = VERTTYPEDIV(PVRTF2X(1.0f), PVRTF2X(sqrt(PVRTX2F(f)))); in normalize()
614 f = VERTTYPEDIV(PVRTF2X(1.0f), PVRTF2X(sqrt(PVRTX2F(f)))); in normalized()