Commit 57356711 authored by Yaowu Xu's avatar Yaowu Xu

Remove unnecessary type conversion

dct_const_round_shift() takes tran_high_t as parameter and Sqrt2 is of
type tran_high_t. It is unnecessary to convert to int64_t then back
to tran_high_t.

Change-Id: I610d37b0772185863c406c6d77ad957d24feaa5e
parent bdc25870
......@@ -1567,7 +1567,7 @@ void av1_iidentity4_c(const int32_t *input, int32_t *output,
const int8_t *cos_bit, const int8_t *stage_range) {
(void)cos_bit;
for (int i = 0; i < 4; ++i)
output[i] = (int32_t)dct_const_round_shift(Sqrt2 * (int64_t)input[i]);
output[i] = (int32_t)dct_const_round_shift(Sqrt2 * input[i]);
range_check(0, input, output, 4, stage_range[0]);
}
......@@ -1582,7 +1582,7 @@ void av1_iidentity16_c(const int32_t *input, int32_t *output,
const int8_t *cos_bit, const int8_t *stage_range) {
(void)cos_bit;
for (int i = 0; i < 16; ++i)
output[i] = (int32_t)dct_const_round_shift(Sqrt2 * (int64_t)input[i] * 2);
output[i] = (int32_t)dct_const_round_shift(Sqrt2 * input[i] * 2);
range_check(0, input, output, 16, stage_range[0]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment