---
title: vDSP_vfix16
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.4+]
path: kernel/1532172-vdsp_vfix16
---

# vDSP_vfix16

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

## Declaration

```occ
void vDSP_vfix16(const float *vDSP_input1, ptrdiff_t vDSP_stride1, int16_t *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 16-bit integer output vector.
- `__IC`: The stride for output vector C.
- `__N`: The number of values to convert.

## Discussion

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

- [vDSP_vsmfix24](kernel/1532200-vdsp_vsmfix24.md)
- [vDSP_vsmfixu24](kernel/1532178-vdsp_vsmfixu24.md)
- [vDSP_vfix32](kernel/1532198-vdsp_vfix32.md)
- [vDSP_vflt16](kernel/1532204-vdsp_vflt16.md)
- [vDSP_vflt24](kernel/1532208-vdsp_vflt24.md)
- [vDSP_vflt32](kernel/1532181-vdsp_vflt32.md)
- [vDSP_vfltu24](kernel/1532185-vdsp_vfltu24.md)
