File: qsort.h

package info (click to toggle)
unace-nonfree 2.5-10
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 2,044 kB
  • sloc: ansic: 14,564; makefile: 48; sh: 32; cpp: 21
file content (34 lines) | stat: -rw-r--r-- 661 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef _BASE_QSORT_H_INCLUDED
#define _BASE_QSORT_H_INCLUDED

#include "base/all/cprdcpr/huff/huff.h"

#ifdef INCL_BASE_QSORT_EXCLUSIVE
  #define DECLEXT
#else
  #define DECLEXT extern
#endif


typedef struct
{
        INT     Hyphen;
        USHORT  Elements   [BASE_CPRDCPR_HUFF_MAXCODE + 2],
                Frequencies[(BASE_CPRDCPR_HUFF_MAXCODE + 2) * 2];
} tBASE_QSORT;

DECLEXT tBASE_QSORT
        BASE_QSORT;

void    BASE_QSORT_SortRange(INT Left, INT Right);
void    BASE_QSORT_DoQuicksort(INT Elements);

#ifndef USE_ASM
void    BASE_QSORT_XchgElements(PUSHORT Var1, PUSHORT Var2);
#endif



#undef DECLEXT

#endif