microfloat 0.1.2

8-bit and sub-byte floating point types
Documentation
1
2
3
4
5
6
7
8
9
#![cfg(feature = "bytemuck")]

use microfloat::f8e4m3;

#[test]
fn bytemuck_views_raw_bits() {
    let value = f8e4m3::ONE;
    assert_eq!(bytemuck::bytes_of(&value), &[value.to_bits()]);
}