binius_field/arch/portable/
packed_1.rs

1// Copyright 2024-2025 Irreducible Inc.
2
3use super::packed::{impl_broadcast, impl_ops_for_zero_height, PackedPrimitiveType};
4use crate::{
5	arch::PairwiseStrategy, arithmetic_traits::impl_transformation_with_strategy, underlier::U1,
6	BinaryField1b,
7};
8
9// Define 1 bit packed field types
10pub type PackedBinaryField1x1b = PackedPrimitiveType<U1, BinaryField1b>;
11
12// Define broadcast
13impl_broadcast!(U1, BinaryField1b);
14
15// Define operations for height 0
16impl_ops_for_zero_height!(PackedBinaryField1x1b);
17
18// Define linear transformations
19impl_transformation_with_strategy!(PackedBinaryField1x1b, PairwiseStrategy);