third_party/cairo/src/cairo-tor22-scan-converter.c
inline static struct quorem
floored_divrem(int a, int b)
{
    struct quorem qr;
    qr.quo = a/b;
    qr.rem = a%b;
    if ((a^b)<0 && qr.rem) {
	qr.quo -= 1;
	qr.rem += b;
    }
    return qr;
}
/* Compute the floored division a/b. Assumes / and % perform symmetric
 * division. */
Compute the floored division a/b. Assumes / and % perform symmetric
division.
Compute the floored division a / b . Assumes / and % perform symmetric division .
inline static struct quorem
floored_divrem(int a, int b)
{
    struct quorem qr;
    qr.quo = a/b;
    qr.rem = a%b;
    if ((a^b)<0 && qr.rem) {
	qr.quo -= 1;
	qr.rem += b;
    }
    return qr;
}
inline static struct quorem floored_divrem ( int a , int b ) { struct quorem qr ; qr . quo = a / b ; qr . rem = a % b ; if ( ( a ^ b ) < 0 && qr . rem ) { qr . quo -= 1 ; qr . rem += b ; } return qr ; }
Compute the floored division a/b.
Compute the floored division a / b .