Type Conversion

No overview available.

Topics

Single-Vector Precision Conversion

The functions in this group convert between single-precision and double-precision floating-point vectors.

vDSP_vdpsp

Vector convert double-precision to single-precision.

vDSP_vspdp

Vector convert single-precision to double-precision.

Single-Vector Floating Point to 8-Bit Integer Conversion

The functions in this group convert the values in a vector from floating-point values to integer values of a given size.

vDSP_vfix8

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

vDSP_vfix8D

Converts an array of double-precision floating-point values to signed 8-bit integer values, rounding towards zero.

vDSP_vfixr8

Converts an array of single-precision floating-point values to signed 8-bit integer values, rounding towards nearest integer.

vDSP_vfixr8D

Converts an array of double-precision floating-point values to signed 8-bit integer values, rounding towards nearest integer.

vDSP_vfixu8

Converts an array of single-precision floating-point values to unsigned 8-bit integer values, rounding towards zero.

vDSP_vfixu8D

Converts an array of double-precision floating-point values to unsigned 8-bit integer values, rounding towards zero.

vDSP_vfixru8

Converts an array of single-precision floating-point values to unsigned 8-bit integer values, rounding towards nearest integer.

vDSP_vfixru8D

Converts an array of double-precision floating-point values to unsigned 8-bit integer values, rounding towards nearest integer.

Single-Vector Floating Point to 16-Bit Integer Conversion

vDSP_vfix16

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

vDSP_vfix16D

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

vDSP_vfixr16

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

vDSP_vfixr16D

Converts an array of double-precision floating-point values to signed 16-bit integer values, rounding towards nearest integer.

vDSP_vfixu16

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

vDSP_vfixu16D

Converts an array of double-precision floating-point values to unsigned 16-bit integer values, rounding towards zero.

vDSP_vfixru16

Converts an array of single-precision floating-point values to unsigned 16-bit integer values, rounding towards nearest integer.

vDSP_vfixru16D

Converts an array of double-precision floating-point values to unsigned 16-bit integer values, rounding towards nearest integer.

Single-Vector Floating Point to 32-Bit Integer Conversion

vDSP_vfix32

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

vDSP_vfix32D

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

vDSP_vfixr32

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

vDSP_vfixr32D

Converts an array of double-precision floating-point values to signed 32-bit integer values, rounding towards nearest integer.

vDSP_vfixu32

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

vDSP_vfixu32D

Converts an array of double-precision floating-point values to unsigned 32-bit integer values, rounding towards zero.

vDSP_vfixru32

Converts an array of single-precision floating-point values to unsigned 32-bit integer values, rounding towards nearest integer.

vDSP_vfixru32D

Converts an array of double-precision floating-point values to unsigned 32-bit integer values, rounding towards nearest integer.

Single-Vector 8-Bit Integer to Floating Point Conversion

The functions in this group convert integer values of a given size to floating-point vectors.

vDSP_vflt8

Converts an array of signed 8-bit integers to single-precision floating-point values.

vDSP_vflt8D

Converts an array of signed 8-bit integers to double-precision floating-point values.

vDSP_vfltu8

Converts an array of unsigned 8-bit integers to single-precision floating-point values.

vDSP_vfltu8D

Converts an array of unsigned 8-bit integers to double-precision floating-point values.

Single-Vector 16-Bit Integer to Floating Point Conversion

vDSP_vflt16

Converts an array of signed 16-bit integers to single-precision floating-point values.

vDSP_vflt16D

Converts an array of signed 16-bit integers to double-precision floating-point values.

vDSP_vfltu16

Converts an array of unsigned 16-bit integers to single-precision floating-point values.

vDSP_vfltu16D

Converts an array of unsigned 16-bit integers to double-precision floating-point values.

Single-Vector 32-Bit Integer to Floating Point Conversion

vDSP_vflt32

Converts an array of signed 32-bit integers to single-precision floating-point values.

vDSP_vflt32D

Converts an array of signed 32-bit integers to double-precision floating-point values.

vDSP_vfltu32

Converts an array of unsigned 32-bit integers to single-precision floating-point values.

vDSP_vfltu32D

Converts an array of unsigned 32-bit integers to double-precision floating-point values.

Floating Point to 24-Bit Integer Conversion

The functions in this group scale and convert floating-point values to and from signed 24-bit integer values.

vDSP_vsmfix24

Scales and converts single-precision floating-point values to signed 24-bit integer values.

vDSP_vsmfixu24

Scales and converts single-precision floating-point values to unsigned 24-bit integer values.

vDSP_vflt24

Converts signed 24-bit integer values to single-precision floating-point values.

vDSP_vfltu24

Converts unsigned 24-bit integer values to single-precision floating-point values.

vDSP_vfltsm24

Converts and scales signed 24-bit integer values to single-precision floating-point values.

vDSP_vfltsmu24

Converts and scales unsigned 24-bit integer values to single-precision floating-point values.

vDSP_uint24

A data structure that holds a 24-bit unsigned integer value.

vDSP_int24

A data structure that holds a 24-bit signed integer value.

See Also

Vector Conversion Functions