Skip to content

Commit

Permalink
compress constant ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
Alain Dargelas committed Dec 19, 2024
1 parent 8b08f81 commit 8687e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion passes/pmgen/peepopt_muldiv_c.pmg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8687e5f

Please sign in to comment.