Skip to content

Commit cc0ae36

Browse files
docs: update division typo in ISA.md (openvm-org#1726)
Resolves openvm-org#1680.
1 parent 08bbf79 commit cc0ae36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/specs/ISA.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ signed×unsigned multiplication respectively.
398398

399399
DIV_RV32 and DIVU_RV32 perform signed and unsigned integer division of 32-bits by 32-bits. REM_RV32
400400
and 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

403403
Below `x[n:m]` denotes the bits from `n` to `m` inclusive of `x`.
404404

extensions/rv32im/circuit/src/divrem/core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use strum::IntoEnumIterator;
3030
#[repr(C)]
3131
#[derive(AlignedBorrow)]
3232
pub 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],

0 commit comments

Comments
 (0)