bf16_ord

Function bf16_ord 

Source
pub fn bf16_ord(bits: u16) -> i32
Expand description

BF16 bits -> a monotone integer, so |ord(a) - ord(b)| is the ULP distance and +0/-0 are the same point.