diff options
Diffstat (limited to 'test/monniaux/jpeg-6b/jutils.c')
-rw-r--r-- | test/monniaux/jpeg-6b/jutils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/monniaux/jpeg-6b/jutils.c b/test/monniaux/jpeg-6b/jutils.c index 505c3a07..d18a9555 100644 --- a/test/monniaux/jpeg-6b/jutils.c +++ b/test/monniaux/jpeg-6b/jutils.c @@ -73,7 +73,7 @@ jdiv_round_up (long a, long b) /* Compute a/b rounded up to next integer, ie, ceil(a/b) */ /* Assumes a >= 0, b > 0 */ { - return DIVISION((a + b - 1L), b); + return (a + b - 1L) / b; } @@ -83,7 +83,7 @@ jround_up (long a, long b) /* Assumes a >= 0, b > 0 */ { a += b - 1L; - return a - DIVISION(a, b); + return a - (a % b); } |