Skip to main content

substrate_data/wire/frame/floats/
mod.rs

1//! A frame's lists of floats, four at a time: whether a list of `f64` is
2//! `f32` exactly (then it's kept as `f32`s, half the bytes), the narrowing
3//! and the widening back — AVX2 where the processor has it, chosen once;
4//! the same bytes either way.
5
6#[cfg(target_arch = "x86_64")]
7mod avx2;
8mod narrowing;
9mod portable;
10
11pub use narrowing::{fits_f32, put_f32s, put_narrow, put_wide, widen};
12
13use crate::wire::frame::sizes::F32_BYTES;