madd
On this page

madd()

Function in Builtins

Multiply-add, a*b + c, written as the plain a.mul(b).add(c) chain.

import { madd } from 'typeshade'

The signature, the description and the examples come from the compiler's own source at commit 26de7be8.

Syntax

const madd: <K extends string>(
a: ReadonlyNode<K>,
b: NoInfer<ArithArg<K>>,
c: NoInfer<ArithArg<K>>,
) => Node<K>

Parameters

a ReadonlyNode<K>
b NoInfer<ArithArg<K>>
c NoInfer<ArithArg<K>>

Return value

Node<K>

Description

For the fused single-rounding operation use fma.

See also

Source

src/core/ir/node.ts, line 2777, at commit 26de7be8

Edit this page Report a problem