third_party/cairo/src/cairo-mesh-pattern-rasterizer.c
static inline int
sqsteps2shift (double steps_sq)
{
    int r;
    frexp (MAX (1.0, steps_sq), &r);
    return (r + 1) >> 1;
}
/*
 * Convert a number of steps to the equivalent shift.
 *
 * Input: the square of the minimum number of steps
 *
 * Output: the smallest integer x such that 2^x > steps
 */
Convert a number of steps to the equivalent shift.
Input: the square of the minimum number of steps

the smallest integer x such that 2^x > steps
Convert a number of steps to the equivalent shift . Input : the square of the minimum number of steps the smallest integer x such that 2^x > steps
static inline int
sqsteps2shift (double steps_sq)
{
    int r;
    frexp (MAX (1.0, steps_sq), &r);
    return (r + 1) >> 1;
}
static inline int sqsteps2shift ( double steps_sq ) { int r ; frexp ( MAX ( 1.0 , steps_sq ) , & r ) ; return ( r + 1 ) >> 1 ; }
Convert a number of steps to the equivalent shift.
Convert a number of steps to the equivalent shift .