binius_field/arch/portable/
packed_1.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2024 Irreducible Inc.

use super::packed::{impl_broadcast, impl_ops_for_zero_height, PackedPrimitiveType};
use crate::{
	arch::PairwiseStrategy, arithmetic_traits::impl_transformation_with_strategy, underlier::U1,
	BinaryField1b,
};

// Define 1 bit packed field types
pub type PackedBinaryField1x1b = PackedPrimitiveType<U1, BinaryField1b>;

// Define broadcast
impl_broadcast!(U1, BinaryField1b);

// Define operations for height 0
impl_ops_for_zero_height!(PackedBinaryField1x1b);

// Define linear transformations
impl_transformation_with_strategy!(PackedBinaryField1x1b, PairwiseStrategy);