Lines Matching refs:r0
144 float *r0, *r1, *r2, *r3; in util_invert_mat4x4() local
154 r0 = wtmp[0], r1 = wtmp[1], r2 = wtmp[2], r3 = wtmp[3]; in util_invert_mat4x4()
156 r0[0] = MAT(m, 0, 0), r0[1] = MAT(m, 0, 1), r0[2] = MAT(m, 0, 2), r0[3] = MAT(m, 0, 3), in util_invert_mat4x4()
157 r0[4] = 1.0, r0[5] = r0[6] = r0[7] = 0.0, in util_invert_mat4x4()
173 if (fabsf(r1[0]) > fabsf(r0[0])) in util_invert_mat4x4()
174 SWAP_ROWS(r1, r0); in util_invert_mat4x4()
175 if (0.0F == r0[0]) in util_invert_mat4x4()
179 m1 = r1[0] / r0[0]; in util_invert_mat4x4()
180 m2 = r2[0] / r0[0]; in util_invert_mat4x4()
181 m3 = r3[0] / r0[0]; in util_invert_mat4x4()
182 s = r0[1]; in util_invert_mat4x4()
186 s = r0[2]; in util_invert_mat4x4()
190 s = r0[3]; in util_invert_mat4x4()
194 s = r0[4]; in util_invert_mat4x4()
200 s = r0[5]; in util_invert_mat4x4()
206 s = r0[6]; in util_invert_mat4x4()
212 s = r0[7]; in util_invert_mat4x4()
282 m0 = r0[3]; in util_invert_mat4x4()
283 r0[4] -= r3[4] * m0, r0[5] -= r3[5] * m0, r0[6] -= r3[6] * m0, r0[7] -= r3[7] * m0; in util_invert_mat4x4()
289 m0 = r0[2]; in util_invert_mat4x4()
290 r0[4] -= r2[4] * m0, r0[5] -= r2[5] * m0, r0[6] -= r2[6] * m0, r0[7] -= r2[7] * m0; in util_invert_mat4x4()
292 m0 = r0[1]; /* now back substitute row 0 */ in util_invert_mat4x4()
293 s = 1.0F / r0[0]; in util_invert_mat4x4()
294 r0[4] = s * (r0[4] - r1[4] * m0), r0[5] = s * (r0[5] - r1[5] * m0), in util_invert_mat4x4()
295 r0[6] = s * (r0[6] - r1[6] * m0), r0[7] = s * (r0[7] - r1[7] * m0); in util_invert_mat4x4()
297 MAT(out, 0, 0) = r0[4]; in util_invert_mat4x4()
298 MAT(out, 0, 1) = r0[5], MAT(out, 0, 2) = r0[6]; in util_invert_mat4x4()
299 MAT(out, 0, 3) = r0[7], MAT(out, 1, 0) = r1[4]; in util_invert_mat4x4()