Developer Reference for Intel® Integrated Performance Primitives 2018

SortAscend, SortDescend

Sorts all elements of a vector.

Syntax

IppStatus ippsSortAscend_8u_I(Ipp8u* pSrcDst, int len);

IppStatus ippsSortAscend_16u_I(Ipp16u* pSrcDst, int len);

IppStatus ippsSortAscend_16s_I(Ipp16s* pSrcDst, int len);

IppStatus ippsSortAscend_32s_I(Ipp32s* pSrcDst, int len);

IppStatus ippsSortAscend_32f_I(Ipp32f* pSrcDst, int len);

IppStatus ippsSortAscend_64f_I(Ipp64f* pSrcDst, int len);

IppStatus ippsSortDescend_8u_I(Ipp8u* pSrcDst, int len);

IppStatus ippsSortDescend_16u_I(Ipp16u* pSrcDst, int len);

IppStatus ippsSortDescend_16s_I(Ipp16s* pSrcDst, int len);

IppStatus ippsSortDescend_32s_I(Ipp32s* pSrcDst, int len);

IppStatus ippsSortDescend_32f_I(Ipp32f* pSrcDst, int len);

IppStatus ippsSortDescend_64f_I(Ipp64f* pSrcDst, int len);

Include Files

ipps.h

Domain Dependencies

Headers: ippcore.h, ippvm.h

Libraries: ippcore.lib, ippvm.lib

Parameters

pSrcDst

Pointer to the source and destination vector.

len

Number of elements in the vector

Description

These functions rearrange all elements of the source vector pSrcDst in the ascending or descending order, respectively, and store the result in the destination vector pSrcDst.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pSrcDst is NULL.

ippStsSizeErr

Indicates an error when len is less than or equal to zero.

Example

SortAscend.c

SortDescend.c