third_party/pixman/pixman/pixman-trap.c
static void
_pixman_edge_multi_init (pixman_edge_t * e,
                         int             n,
                         pixman_fixed_t *stepx_p,
                         pixman_fixed_t *dx_p)
{
    pixman_fixed_t stepx;
    pixman_fixed_48_16_t ne;

    ne = n * (pixman_fixed_48_16_t) e->dx;
    stepx = n * e->stepx;

    if (ne > 0)
    {
	int nx = ne / e->dy;
	ne -= nx * (pixman_fixed_48_16_t)e->dy;
	stepx += nx * e->signdx;
    }

    *dx_p = ne;
    *stepx_p = stepx;
}
/*
 * A private routine to initialize the multi-step
 * elements of an edge structure
 */
A private routine to initialize the multi-step
elements of an edge structure
A private routine to initialize the multi - step elements of an edge structure
static void
_pixman_edge_multi_init (pixman_edge_t * e,
                         int             n,
                         pixman_fixed_t *stepx_p,
                         pixman_fixed_t *dx_p)
{
    pixman_fixed_t stepx;
    pixman_fixed_48_16_t ne;
    ne = n * (pixman_fixed_48_16_t) e->dx;
    stepx = n * e->stepx;
    if (ne > 0)
    {
	int nx = ne / e->dy;
	ne -= nx * (pixman_fixed_48_16_t)e->dy;
	stepx += nx * e->signdx;
    }
    *dx_p = ne;
    *stepx_p = stepx;
}
static void _pixman_edge_multi_init ( pixman_edge_t * e , int n , pixman_fixed_t * stepx_p , pixman_fixed_t * dx_p ) { pixman_fixed_t stepx ; pixman_fixed_48_16_t ne ; ne = n * ( pixman_fixed_48_16_t ) e -> dx ; stepx = n * e -> stepx ; if ( ne > 0 ) { int nx = ne / e -> dy ; ne -= nx * ( pixman_fixed_48_16_t ) e -> dy ; stepx += nx * e -> signdx ; } * dx_p = ne ; * stepx_p = stepx ; }
A private routine to initialize the multi-step
 elements of an edge structure
A private routine to initialize the multi - step elements of an edge structure