Lines Matching refs:fx32

23 inline fx32 mul64(fx64 x, fx32 y)  in mul64()
25 return (fx32)((x * y) >> FX32_SHIFT); in mul64()
96 asm void MTX_Scale33_(register MtxFx33* pDst, register fx32 x, register fx32 y, register fx32 z) in MTX_Scale33_()
125 void MTX_ScaleApply33(const MtxFx33 *pSrc, MtxFx33 *pDst, fx32 x, fx32 y, fx32 z) in MTX_ScaleApply33()
149 asm void MTX_RotX33_(register MtxFx33 * pDst, register fx32 sinVal, register fx32 cosVal) in MTX_RotX33_()
170 asm void MTX_RotY33_(register MtxFx33 * pDst, register fx32 sinVal, register fx32 cosVal) in MTX_RotY33_()
191 asm void MTX_RotZ33_(register MtxFx33 * pDst, register fx32 sinVal, register fx32 cosVal) in MTX_RotZ33_()
222 void MTX_RotAxis33(MtxFx33 *pDst, const VecFx32 *vec, fx32 sinVal, fx32 cosVal) in MTX_RotAxis33()
225 fx32 t01; in MTX_RotAxis33()
226 fx32 s2; in MTX_RotAxis33()
230 t = (fx64)(FX32_ONE - (fx32)cosVal); in MTX_RotAxis33()
237 t01 = (fx32)((xx * xx * t) >> (FX64_SHIFT + FX64_SHIFT)); in MTX_RotAxis33()
240 t01 = (fx32)((yy * yy * t) >> (FX64_SHIFT + FX64_SHIFT)); in MTX_RotAxis33()
243 t01 = (fx32)((zz * zz * t) >> (FX64_SHIFT + FX64_SHIFT)); in MTX_RotAxis33()
246 t01 = (fx32)((t * xx * yy) >> (FX64_SHIFT + FX64_SHIFT)); in MTX_RotAxis33()
247 s2 = (fx32)((ss * zz) >> FX64_SHIFT); in MTX_RotAxis33()
251 t01 = (fx32)((t * xx * zz) >> (FX64_SHIFT + FX64_SHIFT)); in MTX_RotAxis33()
252 s2 = (fx32)((ss * yy) >> FX64_SHIFT); in MTX_RotAxis33()
256 t01 = (fx32)((t * yy * zz) >> (FX64_SHIFT + FX64_SHIFT)); in MTX_RotAxis33()
257 s2 = (fx32)((ss * xx) >> FX64_SHIFT); in MTX_RotAxis33()
278 fx32 det; in MTX_Inverse33()
279 fx32 det00, det10, det20; in MTX_Inverse33()
280 fx32 tmp01, tmp02, tmp11, tmp12; in MTX_Inverse33()
281 fx32 tmp21, tmp22; in MTX_Inverse33()
296 det00 = (fx32)(((fx64)pSrc->_11 * pSrc->_22 - in MTX_Inverse33()
298 det10 = (fx32)(((fx64)pSrc->_10 * pSrc->_22 - in MTX_Inverse33()
300 det20 = (fx32)(((fx64)pSrc->_10 * pSrc->_21 - in MTX_Inverse33()
304 det = (fx32)(((fx64)pSrc->_00 * det00 - in MTX_Inverse33()
314 tmp01 = (fx32)(((fx64)pSrc->_01 * pSrc->_22 - (fx64)pSrc->_21 * pSrc->_02) >> FX32_SHIFT); in MTX_Inverse33()
315 tmp02 = (fx32)(((fx64)pSrc->_01 * pSrc->_12 - (fx64)pSrc->_11 * pSrc->_02) >> FX32_SHIFT); in MTX_Inverse33()
316 tmp11 = (fx32)(((fx64)pSrc->_00 * pSrc->_22 - (fx64)pSrc->_20 * pSrc->_02) >> FX32_SHIFT); in MTX_Inverse33()
317 tmp12 = (fx32)(((fx64)pSrc->_00 * pSrc->_12 - (fx64)pSrc->_10 * pSrc->_02) >> FX32_SHIFT); in MTX_Inverse33()
320 p->_00 = (fx32)(((fx64)det * det00) >> FX32_SHIFT); in MTX_Inverse33()
321 p->_01 = -(fx32)(((fx64)det * tmp01) >> FX32_SHIFT); in MTX_Inverse33()
322 p->_02 = (fx32)(((fx64)det * tmp02) >> FX32_SHIFT); in MTX_Inverse33()
324 p->_10 = -(fx32)(((fx64)det * det10) >> FX32_SHIFT); in MTX_Inverse33()
325 p->_11 = (fx32)(((fx64)det * tmp11) >> FX32_SHIFT); in MTX_Inverse33()
326 p->_12 = -(fx32)(((fx64)det * tmp12) >> FX32_SHIFT); in MTX_Inverse33()
328 p->_20 = (fx32)(((fx64)det * det20) >> FX32_SHIFT); in MTX_Inverse33()
330 tmp21 = (fx32)(((fx64)pSrc->_00 * pSrc->_21 - (fx64)pSrc->_20 * pSrc->_01) >> FX32_SHIFT); in MTX_Inverse33()
331 p->_21 = -(fx32)(((fx64)det * tmp21) >> FX32_SHIFT); in MTX_Inverse33()
333 tmp22 = (fx32)(((fx64)pSrc->_00 * pSrc->_11 - (fx64)pSrc->_10 * pSrc->_01) >> FX32_SHIFT); in MTX_Inverse33()
334 p->_22 = (fx32)(((fx64)det * tmp22) >> FX32_SHIFT); in MTX_Inverse33()
362 register fx32 x, y, z; in MTX_Concat33()
363 register fx32 xx, yy, zz; in MTX_Concat33()
385 p->_00 = (fx32)(((fx64)x * b->_00 + (fx64)y * b->_10 + (fx64)z * b->_20) >> FX32_SHIFT); in MTX_Concat33()
386 p->_01 = (fx32)(((fx64)x * b->_01 + (fx64)y * b->_11 + (fx64)z * b->_21) >> FX32_SHIFT); in MTX_Concat33()
392 p->_02 = (fx32)(((fx64)x * xx + (fx64)y * yy + (fx64)z * zz) >> FX32_SHIFT); in MTX_Concat33()
399 p->_12 = (fx32)(((fx64)x * xx + (fx64)y * yy + (fx64)z * zz) >> FX32_SHIFT); in MTX_Concat33()
400 p->_11 = (fx32)(((fx64)x * b->_01 + (fx64)y * b->_11 + (fx64)z * b->_21) >> FX32_SHIFT); in MTX_Concat33()
406 p->_10 = (fx32)(((fx64)x * xx + (fx64)y * yy + (fx64)z * zz) >> FX32_SHIFT); in MTX_Concat33()
413 p->_20 = (fx32)(((fx64)x * xx + (fx64)y * yy + (fx64)z * zz) >> FX32_SHIFT); in MTX_Concat33()
414 p->_21 = (fx32)(((fx64)x * b->_01 + (fx64)y * b->_11 + (fx64)z * b->_21) >> FX32_SHIFT); in MTX_Concat33()
415 p->_22 = (fx32)(((fx64)x * b->_02 + (fx64)y * b->_12 + (fx64)z * b->_22) >> FX32_SHIFT); in MTX_Concat33()
438 register fx32 x, y, z; in MTX_MultVec33()
447 dst->x = (fx32)(((fx64)x * m->_00 + (fx64)y * m->_10 + (fx64)z * m->_20) >> FX32_SHIFT); in MTX_MultVec33()
448 dst->y = (fx32)(((fx64)x * m->_01 + (fx64)y * m->_11 + (fx64)z * m->_21) >> FX32_SHIFT); in MTX_MultVec33()
449 dst->z = (fx32)(((fx64)x * m->_02 + (fx64)y * m->_12 + (fx64)z * m->_22) >> FX32_SHIFT); in MTX_MultVec33()