third_party/cairo/src/cairo-tor22-scan-converter.c
inline static void
cell_list_add_subspan(struct cell_list *cells,
		      grid_scaled_x_t x1,
		      grid_scaled_x_t x2)
{
    int ix1, fx1;
    int ix2, fx2;

    if (x1 == x2)
	return;

    GRID_X_TO_INT_FRAC(x1, ix1, fx1);
    GRID_X_TO_INT_FRAC(x2, ix2, fx2);

    if (ix1 != ix2) {
	struct cell_pair p;
	p = cell_list_find_pair(cells, ix1, ix2);
	p.cell1->uncovered_area += 2*fx1;
	++p.cell1->covered_height;
	p.cell2->uncovered_area -= 2*fx2;
	--p.cell2->covered_height;
    } else {
	struct cell *cell = cell_list_find(cells, ix1);
	cell->uncovered_area += 2*(fx1-fx2);
    }
}
/* Add a subpixel span covering [x1, x2) to the coverage cells. */
Add a subpixel span covering [x1, x2) to the coverage cells.
Add a subpixel span covering [ x1 x2 ) to the coverage cells .
inline static void
cell_list_add_subspan(struct cell_list *cells,
		      grid_scaled_x_t x1,
		      grid_scaled_x_t x2)
{
    int ix1, fx1;
    int ix2, fx2;
    if (x1 == x2)
	return;
    GRID_X_TO_INT_FRAC(x1, ix1, fx1);
    GRID_X_TO_INT_FRAC(x2, ix2, fx2);
    if (ix1 != ix2) {
	struct cell_pair p;
	p = cell_list_find_pair(cells, ix1, ix2);
	p.cell1->uncovered_area += 2*fx1;
	++p.cell1->covered_height;
	p.cell2->uncovered_area -= 2*fx2;
	--p.cell2->covered_height;
    } else {
	struct cell *cell = cell_list_find(cells, ix1);
	cell->uncovered_area += 2*(fx1-fx2);
    }
}
inline static void cell_list_add_subspan ( struct cell_list * cells , grid_scaled_x_t x1 , grid_scaled_x_t x2 ) { int ix1 , fx1 ; int ix2 , fx2 ; if ( x1 == x2 ) return ; GRID_X_TO_INT_FRAC ( x1 , ix1 , fx1 ) ; GRID_X_TO_INT_FRAC ( x2 , ix2 , fx2 ) ; if ( ix1 != ix2 ) { struct cell_pair p ; p = cell_list_find_pair ( cells , ix1 , ix2 ) ; p . cell1 -> uncovered_area += 2 * fx1 ; ++ p . cell1 -> covered_height ; p . cell2 -> uncovered_area -= 2 * fx2 ; -- p . cell2 -> covered_height ; } else { struct cell * cell = cell_list_find ( cells , ix1 ) ; cell -> uncovered_area += 2 * ( fx1 - fx2 ) ; } }
Add a subpixel span covering [x1, x2) to the coverage cells.
Add a subpixel span covering [ x1 x2 ) to the coverage cells .