Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
luffykai committed Oct 15, 2024
1 parent 5634c77 commit ec819f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vm/src/intrinsics/modular_v2/muldiv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@ impl<F: PrimeField32, const NUM_LIMBS: usize, const LIMB_SIZE: usize>
Self::Record,
)> {
let Instruction { opcode, .. } = instruction.clone();
let opcode = opcode - self.offset;
let local_opcode_index = opcode - self.offset;
let (x, y) = reads;
let x = x.map(|x| x.as_canonical_u32());
let y = y.map(|x| x.as_canonical_u32());

let x_biguint = limbs_to_biguint(&x, LIMB_SIZE);
let y_biguint = limbs_to_biguint(&y, LIMB_SIZE);

let opcode = ModularArithmeticOpcode::from_usize(opcode);
let opcode = ModularArithmeticOpcode::from_usize(local_opcode_index);
let is_mul_flag = match opcode {
ModularArithmeticOpcode::MUL => true,
ModularArithmeticOpcode::DIV => false,
Expand Down

0 comments on commit ec819f1

Please sign in to comment.