def bf16_le

bend-ml-llama@0.2.1.0 · main.bend:1473

import bend-ml-llama@0.2.1.0/main.bend as BendMlLlama
import Base

1473# 2 little-endian bytes of a BF16 number -> the F32 whose upper 16 bits they are (exact)
1474def bf16_le(+b0: U32, +b1: U32) -> F32:
1475  bitcast(((b0 * 65536 : U32) + (b1 * 16777216 : U32) : U32))

Uses (5)

Used by (2)