Lines Matching refs:fx
255 SkFixed fx; in ClampX_ClampY_filter_scale_SSE2() local
265 fx = SkScalarToFixed(pt.fX) - (one >> 1); in ClampX_ClampY_filter_scale_SSE2()
268 if (dx > 0 && (unsigned)(fx >> 16) <= maxX && in ClampX_ClampY_filter_scale_SSE2()
269 (unsigned)((fx + dx * (count - 1)) >> 16) < maxX) { in ClampX_ClampY_filter_scale_SSE2()
273 SkASSERT((fx >> (16 + 14)) == 0); in ClampX_ClampY_filter_scale_SSE2()
274 *xy++ = (fx >> 12 << 14) | ((fx >> 16) + 1); in ClampX_ClampY_filter_scale_SSE2()
275 fx += dx; in ClampX_ClampY_filter_scale_SSE2()
281 __m128i wide_fx = _mm_set_epi32(fx + dx * 3, fx + dx * 2, in ClampX_ClampY_filter_scale_SSE2()
282 fx + dx, fx); in ClampX_ClampY_filter_scale_SSE2()
294 fx += dx * 4; in ClampX_ClampY_filter_scale_SSE2()
301 SkASSERT((fx >> (16 + 14)) == 0); in ClampX_ClampY_filter_scale_SSE2()
302 *xy++ = (fx >> 12 << 14) | ((fx >> 16) + 1); in ClampX_ClampY_filter_scale_SSE2()
303 fx += dx; in ClampX_ClampY_filter_scale_SSE2()
312 *xy++ = ClampX_ClampY_pack_filter(fx, maxX, one); in ClampX_ClampY_filter_scale_SSE2()
313 fx += dx; in ClampX_ClampY_filter_scale_SSE2()
317 __m128i wide_fx = _mm_set_epi32(fx + dx * 3, fx + dx * 2, in ClampX_ClampY_filter_scale_SSE2()
318 fx + dx, fx); in ClampX_ClampY_filter_scale_SSE2()
354 fx += dx * 4; in ClampX_ClampY_filter_scale_SSE2()
361 *xy++ = ClampX_ClampY_pack_filter(fx, maxX, one); in ClampX_ClampY_filter_scale_SSE2()
362 fx += dx; in ClampX_ClampY_filter_scale_SSE2()
377 SkFixed fx; in ClampX_ClampY_nofilter_scale_SSE2() local
381 fx = SkScalarToFixed(pt.fY); in ClampX_ClampY_nofilter_scale_SSE2()
383 *xy++ = SkClampMax(fx >> 16, maxY); in ClampX_ClampY_nofilter_scale_SSE2()
384 fx = SkScalarToFixed(pt.fX); in ClampX_ClampY_nofilter_scale_SSE2()
395 if ((unsigned)(fx >> 16) <= maxX && in ClampX_ClampY_nofilter_scale_SSE2()
396 (unsigned)((fx + dx * (count - 1)) >> 16) <= maxX) { in ClampX_ClampY_nofilter_scale_SSE2()
400 *xy++ = pack_two_shorts(fx >> 16, (fx + dx) >> 16); in ClampX_ClampY_nofilter_scale_SSE2()
401 fx += 2 * dx; in ClampX_ClampY_nofilter_scale_SSE2()
408 __m128i wide_low = _mm_set_epi32(fx + dx * 3, fx + dx * 2, in ClampX_ClampY_nofilter_scale_SSE2()
409 fx + dx, fx); in ClampX_ClampY_nofilter_scale_SSE2()
424 fx += dx * 8; in ClampX_ClampY_nofilter_scale_SSE2()
431 *xx++ = SkToU16(fx >> 16); in ClampX_ClampY_nofilter_scale_SSE2()
432 fx += dx; in ClampX_ClampY_nofilter_scale_SSE2()
441 *xy++ = pack_two_shorts(SkClampMax((fx + dx) >> 16, maxX), in ClampX_ClampY_nofilter_scale_SSE2()
442 SkClampMax(fx >> 16, maxX)); in ClampX_ClampY_nofilter_scale_SSE2()
443 fx += 2 * dx; in ClampX_ClampY_nofilter_scale_SSE2()
450 __m128i wide_low = _mm_set_epi32(fx + dx * 3, fx + dx * 2, in ClampX_ClampY_nofilter_scale_SSE2()
451 fx + dx, fx); in ClampX_ClampY_nofilter_scale_SSE2()
474 fx += dx * 8; in ClampX_ClampY_nofilter_scale_SSE2()
481 *xx++ = SkClampMax(fx >> 16, maxX); in ClampX_ClampY_nofilter_scale_SSE2()
482 fx += dx; in ClampX_ClampY_nofilter_scale_SSE2()
499 SkFixed fx = SkScalarToFixed(srcPt.fX) - (oneX >> 1); in ClampX_ClampY_filter_affine_SSE2() local
510 __m128i wide_f = _mm_set_epi32(fx + dx, fy + dy, fx, fy); in ClampX_ClampY_filter_affine_SSE2()
543 fx += dx2; in ClampX_ClampY_filter_affine_SSE2()
553 *xy++ = ClampX_ClampY_pack_filter(fx, maxX, oneX); in ClampX_ClampY_filter_affine_SSE2()
554 fx += dx; in ClampX_ClampY_filter_affine_SSE2()
573 SkFixed fx = SkScalarToFixed(srcPt.fX); in ClampX_ClampY_nofilter_affine_SSE2() local
583 SkClampMax(fx >> 16, maxX); in ClampX_ClampY_nofilter_affine_SSE2()
584 fx += dx; in ClampX_ClampY_nofilter_affine_SSE2()
592 __m128i wide_fx = _mm_set_epi32(fx + dx * 3, fx + dx * 2, in ClampX_ClampY_nofilter_affine_SSE2()
593 fx + dx, fx); in ClampX_ClampY_nofilter_affine_SSE2()
621 fx += dx4; in ClampX_ClampY_nofilter_affine_SSE2()
630 SkClampMax(fx >> 16, maxX); in ClampX_ClampY_nofilter_affine_SSE2()
631 fx += dx; in ClampX_ClampY_nofilter_affine_SSE2()