Skip to content
fn

widen_f32_f64

void widen_f32_f64(const float * in, double * out, int n)

Widen a single-precision buffer to double precision.

Lets a kernel that must accumulate in double still read float32 inputs through Accelerate rather than an element-at-a-time cast loop.

References

Accelerate.framework vDSP_vspdp.

Parameters

inconst float*
Input buffer.
outdouble*
Output buffer.
nstd::size_t
Element count.