aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/jpeg-6b/jcdctmgr.c
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-03-20 13:20:35 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-03-20 13:20:35 +0100
commit09faeee21a7d72eea8fc56f9ac505f01005d6cb5 (patch)
tree449fe5fbc3f44f753a532e766a419ccc65d6a5e3 /test/monniaux/jpeg-6b/jcdctmgr.c
parent78d7b02570c4cd464dfb64994fd9f2eb69bec8a8 (diff)
downloadcompcert-kvx-09faeee21a7d72eea8fc56f9ac505f01005d6cb5.tar.gz
compcert-kvx-09faeee21a7d72eea8fc56f9ac505f01005d6cb5.zip
use the original source codes
Diffstat (limited to 'test/monniaux/jpeg-6b/jcdctmgr.c')
-rw-r--r--test/monniaux/jpeg-6b/jcdctmgr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/monniaux/jpeg-6b/jcdctmgr.c b/test/monniaux/jpeg-6b/jcdctmgr.c
index b85b0832..61fa79b9 100644
--- a/test/monniaux/jpeg-6b/jcdctmgr.c
+++ b/test/monniaux/jpeg-6b/jcdctmgr.c
@@ -244,9 +244,9 @@ forward_DCT (j_compress_ptr cinfo, jpeg_component_info * compptr,
* If your machine's division is fast enough, define FAST_DIVIDE.
*/
#ifdef FAST_DIVIDE
-#define DIVIDE_BY(a,b) a = INT_DIV(a, b)
+#define DIVIDE_BY(a,b) a /= b
#else
-#define DIVIDE_BY(a,b) if (a >= b) a = INT_DIV(a, b); else a = 0
+#define DIVIDE_BY(a,b) if (a >= b) a /= b; else a = 0
#endif
if (temp < 0) {
temp = -temp;