IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo function

e4m3_magnitude_lut_f16

def e4m3_magnitude_lut_f16(sf2: UInt32) -> SIMD[.uint32, 2]

e4m3_magnitude_lut from a broadcast f16 scale pair.

m * scale takes at most 6 significant bits and stays in f16's normal range for every E4M3 scale, so the f16 product is exact and its one rounding to e4m3 gives the f32 table's bytes.

Returns:

SIMD[.uint32, 2]

Was this page helpful?