diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-03-20 13:20:35 +0100 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2019-03-20 13:20:35 +0100 |
commit | 09faeee21a7d72eea8fc56f9ac505f01005d6cb5 (patch) | |
tree | 449fe5fbc3f44f753a532e766a419ccc65d6a5e3 /test/monniaux/jpeg-6b/jquant2.c | |
parent | 78d7b02570c4cd464dfb64994fd9f2eb69bec8a8 (diff) | |
download | compcert-kvx-09faeee21a7d72eea8fc56f9ac505f01005d6cb5.tar.gz compcert-kvx-09faeee21a7d72eea8fc56f9ac505f01005d6cb5.zip |
use the original source codes
Diffstat (limited to 'test/monniaux/jpeg-6b/jquant2.c')
-rw-r--r-- | test/monniaux/jpeg-6b/jquant2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/monniaux/jpeg-6b/jquant2.c b/test/monniaux/jpeg-6b/jquant2.c index 6eb3bb17..af601e33 100644 --- a/test/monniaux/jpeg-6b/jquant2.c +++ b/test/monniaux/jpeg-6b/jquant2.c @@ -529,9 +529,9 @@ compute_color (j_decompress_ptr cinfo, boxptr boxp, int icolor) } } - cinfo->colormap[0][icolor] = (JSAMPLE) INT_DIV((c0total + (total>>1)), total); - cinfo->colormap[1][icolor] = (JSAMPLE) INT_DIV((c1total + (total>>1)), total); - cinfo->colormap[2][icolor] = (JSAMPLE) INT_DIV((c2total + (total>>1)), total); + cinfo->colormap[0][icolor] = (JSAMPLE) ((c0total + (total>>1)) / total); + cinfo->colormap[1][icolor] = (JSAMPLE) ((c1total + (total>>1)) / total); + cinfo->colormap[2][icolor] = (JSAMPLE) ((c2total + (total>>1)) / total); } |