Skip to main content

binius_field/arch/portable/
m256.rs

1// Copyright 2023-2025 Irreducible Inc.
2// Copyright 2026 The Binius Developers
3
4use crate::{arch::M128, underlier::ScaledUnderlier};
5
6pub type M256 = ScaledUnderlier<M128, 2>;
7
8pub const fn m256_from_u128s(lo: u128, hi: u128) -> M256 {
9	ScaledUnderlier([M128::from_u128(lo), M128::from_u128(hi)])
10}