mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-07 08:13:11 +00:00
cargo fmt
This commit is contained in:
parent
5d30124101
commit
b6e74b8244
@ -94,7 +94,7 @@ impl Field for QuadraticCrandallField {
|
||||
let first = self.0[0].to_canonical_biguint();
|
||||
let second = self.0[1].to_canonical_biguint();
|
||||
let combined = second * Self::CHARACTERISTIC + first;
|
||||
|
||||
|
||||
combined
|
||||
}
|
||||
|
||||
|
||||
@ -128,7 +128,7 @@ impl Field for QuarticCrandallField {
|
||||
let second = self.0[1].to_canonical_biguint();
|
||||
let third = self.0[2].to_canonical_biguint();
|
||||
let fourth = self.0[3].to_canonical_biguint();
|
||||
|
||||
|
||||
let mut combined = fourth;
|
||||
combined *= Self::CHARACTERISTIC;
|
||||
combined += third;
|
||||
@ -136,7 +136,7 @@ impl Field for QuarticCrandallField {
|
||||
combined += second;
|
||||
combined *= Self::CHARACTERISTIC;
|
||||
combined += first;
|
||||
|
||||
|
||||
combined
|
||||
}
|
||||
|
||||
|
||||
@ -161,7 +161,7 @@ macro_rules! test_prime_field_arithmetic {
|
||||
// Can be 32 or 64; doesn't have to be computer's actual word
|
||||
// bits. Choosing 32 gives more tests...
|
||||
const WORD_BITS: usize = 32;
|
||||
|
||||
|
||||
#[test]
|
||||
fn arithmetic_addition() {
|
||||
let modulus = <$field>::order();
|
||||
@ -362,4 +362,3 @@ macro_rules! test_field_arithmetic {
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user