Lines Matching refs:dx
30 #define SWAP_START_END(sx, sy, ex, ey, dx, dy, dir) \
32 if ((dy) >= (dx)) { \
156 uint16_t dx = MATH_ABS(ex - sx);
159 SWAP_START_END(sx, sy, ex, ey, dx, dy, dir);
161 // calculate four vertex ordered according to dy and dx
182 if (dx * dx + dy * dy < width * width) {
183 if ((dx == 1) && (dy == 1)) {
187 dx = MATH_ABS(x0Int - x1Int);
189 if (dy == dx) {
193 if (dy >= dx) {
241 if (dy >= dx) {
242 adj0 = static_cast<uint64_t>(dx << SHIFT_16) / static_cast<uint64_t>(dy);
247 dx = MATH_ABS(x1Int - x0Int);
251 while (--dx) {
270 dx = MATH_ABS(x3Int - x2Int);
274 while (--dx) {
340 adj0 = static_cast<uint64_t>(dy << SHIFT_16) / static_cast<uint64_t>(dx);
398 dx = MATH_ABS(x3Int - x0Int);
400 if (dx == 0) {
403 while (--dx) {
447 uint16_t dx = MATH_ABS(ex - sx);
453 SWAP_START_END(sx, sy, ex, ey, dx, dy, dir);
455 if (dy >= dx) {
456 adj = static_cast<uint64_t>(dx << SHIFT_16) / static_cast<uint64_t>(dy);
469 adj = static_cast<uint64_t>(dy << SHIFT_16) / static_cast<uint64_t>(dx);
470 while (dx--) {