lexical_util::mul

Function mulhi

Source
pub fn mulhi<Full, Half>(x: Full, y: Full) -> Full
where Full: UnsignedInteger, Half: UnsignedInteger,
Expand description

Multiply two unsigned, integral values, and return the hi product.

The full type is the full type size, while the half type is the type with exactly half the bits.