substrate-data 0.4.0

One data model, text syntax, binary form, packed frames and schema system — for any program's files, saves and wire messages.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! A frame's lists of floats, four at a time: whether a list of `f64` is
//! `f32` exactly (then it's kept as `f32`s, half the bytes), the narrowing
//! and the widening back — AVX2 where the processor has it, chosen once;
//! the same bytes either way.

#[cfg(target_arch = "x86_64")]
mod avx2;
mod narrowing;
mod portable;

pub use narrowing::{fits_f32, put_f32s, put_narrow, put_wide, widen};

use crate::wire::frame::sizes::F32_BYTES;