File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
extensions/rv32im/circuit/src/divrem Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ signed×unsigned multiplication respectively.
398398
399399DIV_RV32 and DIVU_RV32 perform signed and unsigned integer division of 32-bits by 32-bits. REM_RV32
400400and REMU_RV32 provide the remainder of the corresponding division operation. Integer division is defined by
401- ` dividend = q * divisor + r ` where ` 0 <= |r| < |divisor| ` and either ` sign(r) = sign(divisor ) ` or ` r = 0 ` .
401+ ` dividend = q * divisor + r ` where ` 0 <= |r| < |divisor| ` and either ` sign(r) = sign(dividend ) ` or ` r = 0 ` .
402402
403403Below ` x[n:m] ` denotes the bits from ` n ` to ` m ` inclusive of ` x ` .
404404
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ use strum::IntoEnumIterator;
3030#[ repr( C ) ]
3131#[ derive( AlignedBorrow ) ]
3232pub struct DivRemCoreCols < T , const NUM_LIMBS : usize , const LIMB_BITS : usize > {
33- // b = c * q + r for some 0 <= |r| < |c| and sign(r) = sign(b).
33+ // b = c * q + r for some 0 <= |r| < |c| and sign(r) = sign(b) or r = 0 .
3434 pub b : [ T ; NUM_LIMBS ] ,
3535 pub c : [ T ; NUM_LIMBS ] ,
3636 pub q : [ T ; NUM_LIMBS ] ,
You can’t perform that action at this time.
0 commit comments