From d18722cdb6ddde7abba9cd1492e636f2668fadf1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Sun, 21 Jun 2009 13:18:46 -0400 Subject: [PATCH] Use DIV instead of _div In pixman-trap.c. --- pixman/pixman-trap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pixman/pixman-trap.c b/pixman/pixman-trap.c index 69ee726..3e88f8c 100644 --- a/pixman/pixman-trap.c +++ b/pixman/pixman-trap.c @@ -53,8 +53,6 @@ pixman_sample_ceil_y (pixman_fixed_t y, int n) return (i | f); } -#define _div(a,b) ((a) >= 0 ? (a) / (b) : -((-(a) + (b) - 1) / (b))) - /* * Compute the largest value no greater than y which is on a * grid row @@ -65,7 +63,7 @@ pixman_sample_floor_y (pixman_fixed_t y, int n) pixman_fixed_t f = pixman_fixed_frac(y); pixman_fixed_t i = pixman_fixed_floor (y); - f = _div(f - Y_FRAC_FIRST(n), STEP_Y_SMALL(n)) * STEP_Y_SMALL(n) + Y_FRAC_FIRST(n); + f = DIV(f - Y_FRAC_FIRST(n), STEP_Y_SMALL(n)) * STEP_Y_SMALL(n) + Y_FRAC_FIRST(n); if (f < Y_FRAC_FIRST(n)) { if (pixman_fixed_to_int(i) == 0x8000) -- 2.7.4