
Getting Started with ADSP-BF537 EZ-KIT Lite
1-23
Programming ADSP-BF537 EZ-KIT Lite with Vi+
}
}
}
}
/* A standard quick sort algorithm, O(n*log(n)) */
void quick_sort ( int *v, unsigned int p, unsigned int r )
{
if ( p < r )
{
unsigned int x, i, j, q;
x = v[ p ];
i = p - 1;
j = r + 1;
for ( ;; )
{
do { --j; } while ( v[ j ] > x );
do { ++i; } while ( v[ i ] < x );
if ( i < j )
{
int temp = v[ i ];
v[ i ] = v[ j ];
v[ j ] = temp;
}
else
{
q = j;
break;
}
}
quick_sort ( v, p, q );
quick_sort ( v, q + 1, r );
}
}
int out_b[ ARRAY_LENGTH ];
int out_m[ ARRAY_LENGTH ];
www.BDTIC.com/ADI
Содержание EZ-KIT Lite ADSP-BF537
Страница 4: ...www BDTIC com ADI ...
Страница 8: ...CONTENTS viii Getting Started with ADSP BF537 EZ KIT Lite www BDTIC com ADI ...
Страница 52: ...Listing 1 3 Exercise 1 Part 3 1 30 Getting Started with ADSP BF537 EZ KIT Lite www BDTIC com ADI ...
Страница 88: ...What s Next 3 22 Getting Started with ADSP BF537 EZ KIT Lite www BDTIC com ADI ...