diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-02-01 15:45:39 +0100 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-02-01 15:45:39 +0100 |
commit | 35244064bbb2a853fb5c08898e8a74a7ec489aaa (patch) | |
tree | e9b7ccb8b46174301ccf106807ea2fcd640350e5 /test/monniaux/jpeg-6b/jutils.c | |
parent | 8ae9063a94fbf3756bb2b1d596f35b81e3e608eb (diff) | |
download | compcert-kvx-35244064bbb2a853fb5c08898e8a74a7ec489aaa.tar.gz compcert-kvx-35244064bbb2a853fb5c08898e8a74a7ec489aaa.zip |
block tail calls etc.
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); } |