File: binsort.h

package info (click to toggle)
libccp4 8.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,100 kB
  • sloc: ansic: 19,540; fortran: 18,766; sh: 11,561; makefile: 73
file content (38 lines) | stat: -rw-r--r-- 1,410 bytes parent folder | download | duplicates (3)
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
35
36
37
38
/*
     binsort.h: header for binary sorting functions

     This library is free software: you can redistribute it and/or
     modify it under the terms of the GNU Lesser General Public License
     version 3, modified in accordance with the provisions of the 
     license to address the requirements of UK law.
 
     You should have received a copy of the modified GNU Lesser General 
     Public License along with this library.  If not, copies may be 
     downloaded from http://www.ccp4.ac.uk/ccp4license.php
 
     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU Lesser General Public License for more details.
*/
/****************************************************************************
  binsort.h
  Z130891

binsort - key data types definition.
****************************************************************************/

/*** Data types definition name begining with U means unsigned... ***/

#define CHAR        (int)1
#define UCHAR       (int)2
#define SHORT       (int)3
#define USHORT      (int)4
#define LONG        (int)5
#define ULONG       (int)6
#define FLOAT       (int)7
#define DOUBLE      (int)8

/*** Sorting order ***/
#define ASC         (int)0      /* ascending */
#define DESC        (int)1      /* descending */