Skip to content
fn

vmadd_f32

void vmadd_f32(const float * a, const float * b, const float * c, float * out, int n)

Single-precision fused multiply-add.

Computes outi=ai⋅bi+ci\text{out}_i = a_i \cdot b_i + c_i via vDSP_vma (single vectorised pass; cheaper and more accurate than separate vmul then vadd).

References

Accelerate.framework vDSP_vma.

Parameters

a, b, cconst float*
Input buffers.
outfloat*
Output buffer.
nstd::size_t
Element count.