summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathis Rosenhauer <rosenhauer@dkrz.de>2016-01-28 10:13:58 +0100
committerMathis Rosenhauer <rosenhauer@dkrz.de>2016-01-28 10:13:58 +0100
commit81c53aeb6cc6742cf94f2af1e23507549ce8a1c3 (patch)
tree5c242b912a4c177885e089422f215d7a095dc981
parent5701ff83f5d5e6085ce2ac05d7083cd08f09876f (diff)
downloadlibaec-81c53aeb6cc6742cf94f2af1e23507549ce8a1c3.tar.gz
libaec-81c53aeb6cc6742cf94f2af1e23507549ce8a1c3.tar.bz2
libaec-81c53aeb6cc6742cf94f2af1e23507549ce8a1c3.zip
Newer Intel compilers need int loop index to vectorize.
-rw-r--r--src/encode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/encode.c b/src/encode.c
index 096e7cd..3569881 100644
--- a/src/encode.c
+++ b/src/encode.c
@@ -246,8 +246,8 @@ static void preprocess_unsigned(struct aec_stream *strm)
const uint32_t *restrict x = state->data_raw;
uint32_t *restrict d = state->data_pp;
uint32_t xmax = state->xmax;
- uint32_t rsi = strm->rsi * strm->block_size - 1;
- unsigned int i;
+ int rsi = (int)strm->rsi * strm->block_size - 1;
+ int i;
state->ref = 1;
state->ref_sample = x[0];
@@ -282,9 +282,9 @@ static void preprocess_signed(struct aec_stream *strm)
uint32_t *restrict d = state->data_pp;
int32_t xmax = (int32_t)state->xmax;
int32_t xmin = (int32_t)state->xmin;
- uint32_t rsi = strm->rsi * strm->block_size - 1;
+ int rsi = (int)strm->rsi * strm->block_size - 1;
uint32_t m = UINT64_C(1) << (strm->bits_per_sample - 1);
- unsigned int i;
+ int i;
state->ref = 1;
state->ref_sample = x[0];