Contents

vDSP_vfix32

Converts an array of single-precision floating-point values to signed 32-bit integer values, rounding toward zero.

Declaration

void vDSP_vfix32(const float *vDSP_input1, ptrdiff_t vDSP_stride1, int *vDSP_input2, ptrdiff_t vDSP_stride2, size_t vDSP_size);

Parameters

  • __A:

    The single-precision floating-point input vector.

  • __IA:

    The stride for input vector A.

  • __C:

    The 32-bit integer output vector.

  • __IC:

    The stride for output vector C.

  • __N:

    The number of values to convert.

Discussion

If the resulting value is outside the bounds of the output type, the behavior is undefined. If you need to handle out-of-bounds data, use one of the functions under the “Clipping Operations” topic of Clipping, limit, and threshold operations.

See Also

Conversion Functions