def DW.fma

bendtorch@1.3.0.0 · dtype.bend:552

import bendtorch@1.3.0.0/dtype.bend as Dtype
import Base

552# acc + a · b, with the product's rounding error kept
553def DW.fma(d: DW, +a: F32, +b: F32) -> DW:
554  +p = (a * b : F32)
555  dw_add3(d, p, two_prod_e(a, b, p))

Uses (5)

Used by (1)