OCP MX E2M1 #
E2M1 is the four-bit floating element used by OCP microscaling formats. This nominal package
stores its code in the low four bits of a UInt8; 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.
OCP MX E2M1 four-bit element format with byte-backed storage.
Instances For
The E2M1 encoding fits in its direct byte carrier.
Certified direct-byte E2M1 addition table.
Instances For
Certified direct-byte E2M1 subtraction table.
Instances For
Certified direct-byte E2M1 multiplication table.
Instances For
Certified direct-byte E2M1 division table.
Instances For
Certified direct-byte E2M1 square-root table.
Instances For
Certified direct-byte E2M1 fused-multiply-add table.
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.