Skip to content

Commit 54add79

Browse files
authored
Rollup merge of #152770 - RalfJung:carryless-mul-base, r=scottmcm
carryless_mul: mention the base Arithmetic operations do not typically care about the base that is used to represent numbers, but this one does. Mentioning that makes it easier to understand the operation, I think. Cc @folkertdev
2 parents c49cbd0 + 626de86 commit 54add79

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

library/core/src/num/uint_macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ macro_rules! uint_impl {
487487

488488
/// Performs a carry-less multiplication, returning the lower bits.
489489
///
490-
/// This operation is similar to long multiplication, except that exclusive or is used
491-
/// instead of addition. The implementation is equivalent to:
490+
/// This operation is similar to long multiplication in base 2, except that exclusive or is
491+
/// used instead of addition. The implementation is equivalent to:
492492
///
493493
/// ```no_run
494494
#[doc = concat!("pub fn carryless_mul(lhs: ", stringify!($SelfT), ", rhs: ", stringify!($SelfT), ") -> ", stringify!($SelfT), "{")]

0 commit comments

Comments
 (0)