OCP MX E2M1 #
FloatLib.Floats.E2M1 is the four-bit floating element used by OCP microscaling formats, with
type-level identity E2M1.Family. It stores its code in the low four bits of a UInt8, and the
high-bit invariant is erased at runtime. Balanced and throughput planning select exhaustive proved
tables for all six operations, including the 4,096-entry fused-multiply-add table. Latency planning
selects arithmetic kernels.
This package implements the scalar element format. OCP block semantics and scale selection are
defined under FloatLib.Floats.Formats.OCP.MX.Standard.
Reference #
- Open Compute Project, Microscaling Formats (MX) Specification, version 1.0, E2M1, https://www.opencompute.org/documents/ocp-microscaling-formats-mx-v1-0-spec-final-pdf.
The E2M1 encoding fits in its direct byte carrier.
Certified direct-byte E2M1 fused-multiply-add table.
Instances For
OCP MX FP4 E2M1 element: 2 exponent bits and 1 fraction bit with bias 1, every code finite, stored in the low four bits of a byte. Under balanced and throughput planning, arithmetic, including fused multiply-add, reads certified byte tables.
Instances For
Construct E2M1 from a natural pattern, reduced to four bits.
Instances For
Read the byte whose low four bits contain the E2M1 code.