//! Fixed-exponent helpers shared by the fields whose `invert`/`sqrt` closed forms are built from
//! repeated squaring (Mersenne primes, GF(2^k)).
use Field;
/// Returns `x^(2^n)`, i.e. `n` repeated squarings (in char 2, the Frobenius map iterated `n`
/// times).
pub
/// Returns `x^(2^k - 1)` via an Itoh–Tsujii-style addition chain: ≈`k` squarings and `O(log k)`
/// multiplications, versus the ~`2k` operations of plain square-and-multiply on the all-ones
/// exponent.
pub