mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-10 17:53:06 +00:00
parent
9ef784a99d
commit
de1d5d0ad2
@ -5,7 +5,6 @@ use std::iter::{Product, Sum};
|
||||
use std::ops::{Add, AddAssign, Mul, MulAssign, Neg, Sub, SubAssign};
|
||||
|
||||
use crate::field::crandall_field::CrandallField;
|
||||
use crate::field::field_types::Field;
|
||||
use crate::field::packed_field::PackedField;
|
||||
|
||||
// PackedCrandallAVX2 wraps an array of four u64s, with the new and get methods to convert that
|
||||
@ -470,7 +469,7 @@ unsafe fn interleave1(x: __m256i, y: __m256i) -> (__m256i, __m256i) {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::field::crandall_field::CrandallField;
|
||||
use crate::field::field_types::Field;
|
||||
use crate::field::packed_crandall_avx2::*;
|
||||
|
||||
const TEST_VALS_A: [CrandallField; 4] = [
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
//! Concrete instantiation of a hash function.
|
||||
|
||||
use crate::field::extension_field::Extendable;
|
||||
use crate::field::field_types::{Field, RichField};
|
||||
use crate::hash::gmimc::GMiMC;
|
||||
use crate::field::field_types::RichField;
|
||||
use crate::hash::hash_types::{HashOut, HashOutTarget};
|
||||
use crate::iop::target::Target;
|
||||
use crate::plonk::circuit_builder::CircuitBuilder;
|
||||
|
||||
@ -56,7 +56,7 @@ unsafe fn iteration8<const INDEX: usize, const SHIFT: i32>(
|
||||
) -> [Vecs128; 2]
|
||||
// 2 vectors of 4 needed to represent entire state.
|
||||
where
|
||||
[(); { INDEX + 4 }]: ,
|
||||
[(); INDEX + 4]: ,
|
||||
[(); (64 - SHIFT) as usize]: ,
|
||||
{
|
||||
// Entire state, rotated by INDEX.
|
||||
@ -130,8 +130,8 @@ unsafe fn iteration12<const INDEX: usize, const SHIFT: i32>(
|
||||
) -> [Vecs128; 3]
|
||||
// 3 vectors of 4 needed to represent entire state.
|
||||
where
|
||||
[(); { INDEX + 4 }]: ,
|
||||
[(); { INDEX + 8 }]: ,
|
||||
[(); INDEX + 4]: ,
|
||||
[(); INDEX + 8]: ,
|
||||
[(); (64 - SHIFT) as usize]: ,
|
||||
{
|
||||
// Entire state, rotated by INDEX.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user