Function

vDSP_vflt24(_:_:_:_:_:)

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

Declaration

func vDSP_vflt24(_ __A: UnsafePointer<vDSP_int24>, _ __IA: vDSP_Stride, _ __C: UnsafeMutablePointer<Float>, _ __IC: vDSP_Stride, _ __N: vDSP_Length)

Parameters

__A

Signed 24-bit integer input vector.

__IA

Stride for A.

__C

Single-precision floating-point output vector.

__IC

Stride for C.

__N

The number of values to convert.

Discussion

Converts the signed 24-bit integer values in A to single precision floating-point values and places the results in C, as shown in the following pseudocode:

    for (n = 0; n < N; ++n)
        C[n*IC] = (float)A[n*IA];

See Also

Floating Point to 24-Bit Integer Conversion

func vDSP_vsmfix24(UnsafePointer<Float>, vDSP_Stride, UnsafePointer<Float>, UnsafeMutablePointer<vDSP_int24>, vDSP_Stride, vDSP_Length)

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

func vDSP_vsmfixu24(UnsafePointer<Float>, vDSP_Stride, UnsafePointer<Float>, UnsafeMutablePointer<vDSP_uint24>, vDSP_Stride, vDSP_Length)

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

func vDSP_vfltu24(UnsafePointer<vDSP_uint24>, vDSP_Stride, UnsafeMutablePointer<Float>, vDSP_Stride, vDSP_Length)

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

func vDSP_vfltsm24(UnsafePointer<vDSP_int24>, vDSP_Stride, UnsafePointer<Float>, UnsafeMutablePointer<Float>, vDSP_Stride, vDSP_Length)

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

func vDSP_vfltsmu24(UnsafePointer<vDSP_uint24>, vDSP_Stride, UnsafePointer<Float>, UnsafeMutablePointer<Float>, vDSP_Stride, vDSP_Length)

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

struct vDSP_uint24

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

struct vDSP_int24

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software