Commit d9e0e0be authored by Angie Chiang's avatar Angie Chiang

Add additional txfm config check

Change-Id: I0b67ad4f37a22812472b191e0a6f1d218430c454
parent 9c7089a9
......@@ -173,6 +173,7 @@ void txfm_stage_range_check(const int8_t *stage_range, int stage_num,
}
for (int i = 0; i < stage_num - 1; ++i) {
// make sure there is no overflow while doing half_btf()
EXPECT_LE(stage_range[i] + cos_bit[i], high_range);
EXPECT_LE(stage_range[i + 1] + cos_bit[i], high_range);
}
}
......
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