1 /* $Id: genomicpos.h 221580 2020-01-30 21:27:15Z twu $ */
2 #ifndef GENOMICPOS_INCLUDED
3 #define GENOMICPOS_INCLUDED
4 #ifdef HAVE_CONFIG_H
5 #include <config.h>		/* For HAVE_64_BIT */
6 #endif
7 
8 #include <stdlib.h>
9 #include "types.h"
10 
11 /* A genomic position */
12 #include "univcoord.h"
13 #ifdef LARGE_GENOMES
14 #include "uint8list.h"
15 typedef Uint8list_T Genomicposlist_T;
16 #else
17 #include "uintlist.h"
18 typedef Uintlist_T Genomicposlist_T;
19 #endif
20 
21 /* A chromosomal position */
22 typedef UINT4 Chrpos_T;
23 
24 extern char *
25 Genomicpos_commafmt (
26 #ifdef HAVE_64_BIT
27 		     UINT8 N
28 #else
29 		     UINT4 N
30 #endif
31 		     );
32 #ifdef MEMUSAGE
33 void
34 Genomicpos_commafmt_fill (char *string,
35 #ifdef HAVE_64_BIT
36 		     UINT8 N
37 #else
38 		     UINT4 N
39 #endif
40 		     );
41 #endif
42 
43 extern int
44 UINT8_compare (const void *a, const void *b);
45 extern int
46 UINT4_compare (const void *a, const void *b);
47 extern int
48 UINT2_compare (const void *a, const void *b);
49 extern int
50 Univcoord_compare (const void *a, const void *b);
51 extern int
52 Chrpos_compare (const void *a, const void *b);
53 
54 #endif
55