Function Descriptions
3.34 Sort an Array of Floats
Description:
This module sorts an array of floats. This function is a partially optmized version of qsort.c
from the C28x cgtools lib qsort() v6.0.1.
Header File:
FPU.h
Declaration:
void qsort_SP_RV(void
*
x, Uint16 N)
Usage:
qsort_SP_RV(x, N);
void *x
input array of floats
Uint16 N
size of x array
Alignment Requirements:
None
Notes:
1. Performance is best with -o1, -mf3 compiler options (cgtools v6.0.1)
Example:
#include "FPU.h"
#define N 4
float32 x[N];
main()
{
qsort_SP_RV(x,N);
}
Benchmark Information:
The cycles for this function are data dependent and therefore the benchmark cannot be pro-
vided.
Sep 10, 2012 68