TorchLean API

FloatLib.Floats.ExecFloat.Backends.Dispatch.FmaWord.Runtime

Executable word-specialized fused multiply-add dispatch #

Generic and word-specialized dispatchers compute fused multiply-add. Their refinement theorems live in FmaWord.Proof.

Width-generic compiled FMA.

The exceptional-value dispatcher stays explicit, while the all-finite path decodes each operand once and uses the compact finite kernel.

Instances For
    @[specialize #[0]]

    Compiled implementation of fma.

    Binary32 and binary64 finite operands use native-word decoding and still round only once. Other eligible one-word IEEE formats use the reusable native-storage decoder. Declined and unsupported cases follow the format-generic implementation. The dispatcher is specialized on the descriptor, as described in Dispatch.Add.Runtime.

    Instances For