//! The signed digit of safegcd, sized to the word: 62 bits in `i64` on
//! 64-bit targets and 30 bits in `i32` otherwise, two bits short of the
//! word, with products in the type twice as wide.
use Word;
/// One signed digit, of [`DIGIT_BITS`] bits but the top one, which keeps
/// the sign and whatever lies above.
pub type Digit = i64;
/// One signed digit, of [`DIGIT_BITS`] bits but the top one, which keeps
/// the sign and whatever lies above.
pub type Digit = i32;
/// Twice the width of [`Digit`], for products and carries.
pub type WideDigit = i128;
/// Twice the width of [`Digit`], for products and carries.
pub type WideDigit = i64;
/// The bits a digit holds below the top one.
pub const DIGIT_BITS: u32 = BITS - 2;
// A digit is as wide as the word, so that one converts to the other.
const _: = assert!;