Motorola DSP Developer's Kit    
sort-r1.asm

MATLAB Usage

Description

This function sorts real elements of input real vector X

Input/Output

Input: Real vector X

Output: Real vector Y

Algorithm

The heap sort algorithm will be used.

Memory & Register

Memory allocation:

X memory:

Register usage:

Status Register

The assembly function sort-1r.asm does not explicitly set any status registers/bits during the function execution.

Data Size Limit

The length of vector X can't be larger than the continuous available data memory size.

Data Range Limit

The value of input vector X must be between -1.0 and +1.0.

Precision

In the case of DSP563, precision is 23 bits.

In the case of DSP566, precision is 15 bits.


 round-c.asm sort-r2.asm