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/jcmaster.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/jcmaster.c')
-rw-r--r-- | test/monniaux/jpeg-6b/jcmaster.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/monniaux/jpeg-6b/jcmaster.c b/test/monniaux/jpeg-6b/jcmaster.c index 0f206557..aab4020b 100644 --- a/test/monniaux/jpeg-6b/jcmaster.c +++ b/test/monniaux/jpeg-6b/jcmaster.c @@ -330,7 +330,7 @@ per_scan_setup (j_compress_ptr cinfo) /* For noninterleaved scans, it is convenient to define last_row_height * as the number of block rows present in the last iMCU row. */ - tmp = (int) INT_UMOD(compptr->height_in_blocks, compptr->v_samp_factor); + tmp = (int) (compptr->height_in_blocks % compptr->v_samp_factor); if (tmp == 0) tmp = compptr->v_samp_factor; compptr->last_row_height = tmp; @@ -363,10 +363,10 @@ per_scan_setup (j_compress_ptr cinfo) compptr->MCU_blocks = compptr->MCU_width * compptr->MCU_height; compptr->MCU_sample_width = compptr->MCU_width * DCTSIZE; /* Figure number of non-dummy blocks in last MCU column & row */ - tmp = (int) INT_UMOD(compptr->width_in_blocks, compptr->MCU_width); + tmp = (int) (compptr->width_in_blocks % compptr->MCU_width); if (tmp == 0) tmp = compptr->MCU_width; compptr->last_col_width = tmp; - tmp = (int) INT_UMOD(compptr->height_in_blocks, compptr->MCU_height); + tmp = (int) (compptr->height_in_blocks % compptr->MCU_height); if (tmp == 0) tmp = compptr->MCU_height; compptr->last_row_height = tmp; /* Prepare array describing MCU composition */ |