Lines Matching refs:sk4f
17 using sk4f = skvx::Vec<4, float>; typedef
25 sk4f a0 = sk4f::Load(fMat + 0); in operator ==()
26 sk4f a1 = sk4f::Load(fMat + 4); in operator ==()
27 sk4f a2 = sk4f::Load(fMat + 8); in operator ==()
28 sk4f a3 = sk4f::Load(fMat + 12); in operator ==()
30 sk4f b0 = sk4f::Load(other.fMat + 0); in operator ==()
31 sk4f b1 = sk4f::Load(other.fMat + 4); in operator ==()
32 sk4f b2 = sk4f::Load(other.fMat + 8); in operator ==()
33 sk4f b3 = sk4f::Load(other.fMat + 12); in operator ==()
51 sk4f c0 = sk4f::Load(a.fMat + 0); in setConcat()
52 sk4f c1 = sk4f::Load(a.fMat + 4); in setConcat()
53 sk4f c2 = sk4f::Load(a.fMat + 8); in setConcat()
54 sk4f c3 = sk4f::Load(a.fMat + 12); in setConcat()
56 auto compute = [&](sk4f r) { in setConcat()
60 sk4f m0 = compute(sk4f::Load(b.fMat + 0)); in setConcat()
61 sk4f m1 = compute(sk4f::Load(b.fMat + 4)); in setConcat()
62 sk4f m2 = compute(sk4f::Load(b.fMat + 8)); in setConcat()
63 sk4f m3 = compute(sk4f::Load(b.fMat + 12)); in setConcat()
73 sk4f c0 = sk4f::Load(fMat + 0); in preConcat()
74 sk4f c1 = sk4f::Load(fMat + 4); in preConcat()
75 sk4f c3 = sk4f::Load(fMat + 12); in preConcat()
81 sk4f m0 = compute(b[0], b[3], b[6]); in preConcat()
82 sk4f m1 = compute(b[1], b[4], b[7]); in preConcat()
83 sk4f m3 = compute(b[2], b[5], b[8]); in preConcat()
92 sk4f c0 = sk4f::Load(fMat + 0); in preTranslate()
93 sk4f c1 = sk4f::Load(fMat + 4); in preTranslate()
94 sk4f c2 = sk4f::Load(fMat + 8); in preTranslate()
95 sk4f c3 = sk4f::Load(fMat + 12); in preTranslate()
103 sk4f t = { x, y, z, 0 }; in postTranslate()
104 (t * fMat[ 3] + sk4f::Load(fMat + 0)).store(fMat + 0); in postTranslate()
105 (t * fMat[ 7] + sk4f::Load(fMat + 4)).store(fMat + 4); in postTranslate()
106 (t * fMat[11] + sk4f::Load(fMat + 8)).store(fMat + 8); in postTranslate()
107 (t * fMat[15] + sk4f::Load(fMat + 12)).store(fMat + 12); in postTranslate()
112 sk4f c0 = sk4f::Load(fMat + 0); in preScale()
113 sk4f c1 = sk4f::Load(fMat + 4); in preScale()
121 sk4f c0 = sk4f::Load(fMat + 0); in preScale()
122 sk4f c1 = sk4f::Load(fMat + 4); in preScale()
123 sk4f c2 = sk4f::Load(fMat + 8); in preScale()
132 sk4f c0 = sk4f::Load(fMat + 0); in map()
133 sk4f c1 = sk4f::Load(fMat + 4); in map()
134 sk4f c2 = sk4f::Load(fMat + 8); in map()
135 sk4f c3 = sk4f::Load(fMat + 12); in map()
146 const sk4f flip{1.f, 1.f, -1.f, -1.f}; in map_rect_affine()
149 sk4f c0 = skvx::shuffle<0,1,0,1>(sk2f::Load(mat + 0)) * flip; in map_rect_affine()
150 sk4f c1 = skvx::shuffle<0,1,0,1>(sk2f::Load(mat + 4)) * flip; in map_rect_affine()
151 sk4f c3 = skvx::shuffle<0,1,0,1>(sk2f::Load(mat + 12)); in map_rect_affine()
155 sk4f minMax = c3 + flip * min(min(c0 * src.fLeft + c1 * src.fTop, in map_rect_affine()
169 sk4f c0 = sk4f::Load(mat + 0); in map_rect_perspective()
170 sk4f c1 = sk4f::Load(mat + 4); in map_rect_perspective()
171 sk4f c3 = sk4f::Load(mat + 12); in map_rect_perspective()
175 sk4f tl = c0 * src.fLeft + c1 * src.fTop + c3; in map_rect_perspective()
176 sk4f tr = c0 * src.fRight + c1 * src.fTop + c3; in map_rect_perspective()
177 sk4f bl = c0 * src.fLeft + c1 * src.fBottom + c3; in map_rect_perspective()
178 sk4f br = c0 * src.fRight + c1 * src.fBottom + c3; in map_rect_perspective()
182 const sk4f flip{1.f, 1.f, -1.f, -1.f}; in map_rect_perspective()
183 auto project = [&flip](const sk4f& p0, const sk4f& p1, const sk4f& p2) { in map_rect_perspective()
189 auto clip = [&](const sk4f& p) { in map_rect_perspective()
198 return sk4f(SK_ScalarInfinity); in map_rect_perspective()
210 sk4f minMax = flip * min(min(project(tl, tr, bl), project(tr, br, tl)), in map_rect_perspective()
235 (sk4f::Load(fMat + 0) * inv).store(fMat + 0); in normalizePerspective()
236 (sk4f::Load(fMat + 4) * inv).store(fMat + 4); in normalizePerspective()
237 (sk4f::Load(fMat + 8) * inv).store(fMat + 8); in normalizePerspective()
238 (sk4f::Load(fMat + 12) * inv).store(fMat + 12); in normalizePerspective()