Skip to content

Commit e0c50c8

Browse files
committed
uint: remove fast-path for mul by u64
1 parent 0b3844e commit e0c50c8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

uint/src/uint.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -765,11 +765,6 @@ macro_rules! construct_uint {
765765
/// Multiply with overflow, returning a flag if it does.
766766
#[inline(always)]
767767
pub fn overflowing_mul(self, other: $name) -> ($name, bool) {
768-
// Fast path if other fits u64
769-
if other.fits_word() {
770-
let (res, carry) = self.overflowing_mul_u64(other.low_u64());
771-
return (res, carry > 0);
772-
}
773768
uint_overflowing_mul!($name, $n_words, self, other)
774769
}
775770

0 commit comments

Comments
 (0)