Skip to main content

binius_field/arch/x86_64/simd/
simd_arithmetic.rs

1// Copyright 2024-2025 Irreducible Inc.
2
3use crate::underlier::UnderlierType;
4
5/// SIMD underlier operations backing the x86_64 GFNI field arithmetic.
6///
7/// Only exercised when the `gfni` target feature is enabled.
8/// On other x86_64 builds nothing calls it, hence the `dead_code` allow.
9#[allow(dead_code)]
10pub trait TowerSimdType: Sized + Copy + UnderlierType {
11	/// Broadcast a 64-bit value across every 64-bit lane.
12	fn set_epi_64(val: i64) -> Self;
13}