-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathdefs.h
53 lines (44 loc) · 770 Bytes
/
defs.h
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef _LSONG_DEFS_HEADER
#define _LSONG_DEFS_HEADER
#include <stdint.h>
//#define DEBUG
extern int nucToNum[26] ;
extern char numToNuc[26] ;
#define MAX(x,y) (((x)>(y))?(x):(y))
#define MIN(x,y) (((x)<(y))?(x):(y))
#define ABS(x) (((x)>(0))?(x):(-(x)))
typedef int index_t ;
#define MAX_SEG_COUNT 127
struct _pair
{
int a, b ;
bool operator==(const struct _pair &other)
{
if (a == other.a && b == other.b)
return true ;
return false ;
}
} ;
struct _pair64
{
int64_t a, b ;
} ;
struct _triple
{
int a, b, c ;
bool operator<(const struct _triple &other)
{
if (a != other.a)
return a < other.a ;
else if (b != other.b)
return b < other.b ;
else
return c < other.c ;
}
} ;
/*struct _pair_b64
{
int a ;
uint64_t b ;
} ;*/
#endif