Lines Matching refs:dx
16 static int chop(int64_t x0, SkFixed edge, int64_t x1, int64_t dx, int count) { in chop() argument
17 SkASSERT(dx > 0); in chop()
26 int64_t n = (edge - x0 + dx - 1) / dx; in chop()
63 int64_t dx = dx0; in init() local
65 int64_t ex = fx + (count - 1) * dx; in init()
88 ex += dx; in init()
94 bool swap = dx < 0; in init()
96 dx = -dx; in init()
99 ccount = (SK_FixedMax - fx + dx - 1) / dx; in init()
101 dx = -dx; in init()
109 if (dx > 0) { in init()
117 ex = fx + dx * count; in init()
120 bool doSwap = dx < 0; in init()
123 ex -= dx; in init()
124 fx -= dx; in init()
126 dx = -dx; in init()
130 fCount0 = chop(fx, 0, ex, dx, count); in init()
132 fx += fCount0 * dx; in init()
134 SkASSERT(fCount0 == 0 || (fx - dx) < 0); in init()
135 fCount1 = chop(fx, 0xFFFF, ex, dx, count); in init()
140 fx += fCount1 * dx; in init()
145 SkASSERT(fx - dx < 0xFFFF); in init()
153 dx = -dx; in init()
157 fFx1 = fx0 + fCount0 * (int)dx; in init()
160 if (dx > 0) { in init()