Lines Matching refs:wx
58 skvx::Vec<8,uint32_t> x0,x1,wx;
59 decode_packed_coordinates_and_weight(packed_x_coordinates, &x0, &x1, &wx);
61 // Splat wx to each color channel.
62 wx = (wx << 0)
63 | (wx << 8)
64 | (wx << 16)
65 | (wx << 24);
90 wr = skvx::bit_pun<__m256i>(wx),
126 // sum = tl * (16-wy) * (16-wx)
127 // + bl * ( wy) * (16-wx)
128 // + tr * (16-wy) * ( wx)
129 // + br * ( wy) * ( wx)
136 lerp(to_16x4(tr), to_16x4(br), wy), to_16x4(wx));
247 __m128i wx;
253 wx = _mm_and_si128(_mm_srli_epi32(packed, 14), _mm_set1_epi32(0xf)); // [0,15]
257 __m128i wr = _mm_shuffle_epi8(wx, _mm_setr_epi8(0,0,0,0,4,4,4,4,8,8,8,8,12,12,12,12)),
290 int x0, x1, wx;
291 decode_packed_coordinates_and_weight(*xy++, &x0, &x1, &wx);
293 // As above, splat out wx four times as wr, and sixteen minus that as wl.
294 __m128i wr = _mm_set1_epi8(wx), // This splats it out 16 times, but that's fine.
332 int x0, x1, wx;
333 decode_packed_coordinates_and_weight(*xy++, &x0, &x1, &wx);
343 // sum = tl * (16-wy) * (16-wx)
344 // + bl * ( wy) * (16-wx)
345 // + tr * (16-wy) * ( wx)
346 // + br * ( wy) * ( wx)
348 // (Notice top --> 16-wy, bottom --> wy, left --> 16-wx, right --> wx.)
357 // sum = horizontalSum( allY * (L*(16-wx) + R*wx) )
361 // sum = horizontalSum( allY * (16*L + (R-L)*wx) )
369 _mm_mullo_epi16(_mm_sub_epi16(R,L), _mm_set1_epi16(wx)));
489 int x0, x1, wx;
490 decode_packed_coordinates_and_weight(*xy++, &x0, &x1, &wx);
492 filter_and_scale_by_alpha(wx, wy,
516 x0, x1, wx;
518 decode_packed_coordinates_and_weight(*xy++, &x0, &x1, &wx);
523 filter_and_scale_by_alpha(wx, wy,