compress constant ratio

This commit is contained in:
Alain Dargelas 2024-12-19 14:24:25 -08:00
parent 8b08f81d19
commit 8687e5f4fb
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ code
int c_const_int = c_const.as_int(c_const_signed);
int b_const_int_shifted = b_const_int << offset;
// Calculate the constant and compress the width to fit the value
Const const_ratio = b_const_int_shifted / c_const_int;
Const const_ratio = b_const_int_shifted / c_const_int;
const_ratio.compress(b_const_signed | c_const_signed);
// Integer values should be lesser than 64 bits