Skip to main content

binius_field/arch/portable/
packed_ghash_512.rs

1// Copyright 2024-2025 Irreducible Inc.
2// Copyright 2026 The Binius Developers
3
4use super::{
5	packed_512::M512,
6	packed_macros::{portable_macros::*, *},
7};
8use crate::arch::strategies::ScaledStrategy;
9
10define_packed_binary_fields!(
11	underlier: M512,
12	packed_fields: [
13		packed_field {
14			name: PackedBinaryGhash4x128b,
15			scalar: BinaryField128bGhash,
16			mul:       (ScaledStrategy),
17			square:    (ScaledStrategy),
18			invert:    (ScaledStrategy),
19			transform: (None),
20		},
21	]
22);
23
24crate::arithmetic_traits::impl_trivial_wide_mul!(PackedBinaryGhash4x128b);