Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

fpow

Calculates base raised to the power using fast exponentiation

Arguments

  • base - The base value (must be non-zero)
  • power - The exponent

Returns

  • u128 - The result of base^power

Fully qualified path: alexandria_math::sha512::fpow

pub fn fpow(mut base: u128, mut power: u128) -> u128