diff --git a/src/field/extension_field/quadratic.rs b/src/field/extension_field/quadratic.rs index acc66def..0b6f26f0 100644 --- a/src/field/extension_field/quadratic.rs +++ b/src/field/extension_field/quadratic.rs @@ -88,7 +88,7 @@ impl Field for QuadraticCrandallField { const NEG_ONE: Self = Self([CrandallField::NEG_ONE, CrandallField::ZERO]); // Does not fit in 64-bits. - const ORDER: u64 = 0xffffffffffffffff; // Otherwise F::ORDER.leading_zeros() is misleading. + const ORDER: u64 = 0; const TWO_ADICITY: usize = 29; const MULTIPLICATIVE_GROUP_GENERATOR: Self = Self([CrandallField(3), CrandallField::ONE]); const POWER_OF_TWO_GENERATOR: Self = diff --git a/src/field/extension_field/quartic.rs b/src/field/extension_field/quartic.rs index 49235a06..ecf9bfd2 100644 --- a/src/field/extension_field/quartic.rs +++ b/src/field/extension_field/quartic.rs @@ -114,7 +114,7 @@ impl Field for QuarticCrandallField { ]); // Does not fit in 64-bits. - const ORDER: u64 = 0xffffffffffffffff; // Otherwise F::ORDER.leading_zeros() is misleading. + const ORDER: u64 = 0; const TWO_ADICITY: usize = 30; const MULTIPLICATIVE_GROUP_GENERATOR: Self = Self([ CrandallField(3),