bf16_scalar.c file
Functions
-
auto vm_bf16_from_f32(float x) -> vm_
bf16_ t - Round a binary32 value to bfloat16, ties to even.
-
auto vm_f32_from_bf16(const vm_
bf16_ t h) -> float - Expand bfloat16 bits to binary32.
Function documentation
vm_ bf16_ t vm_bf16_from_f32(float x)
Round a binary32 value to bfloat16, ties to even.
Inf maps to inf. Every NaN maps to the canonical quiet NaN 0x7fc0.