]> git.donarmstrong.com Git - biopieces.git/blob - code_c/Maasha/src/inc/common.h
added sort to bipartite_scan.c
[biopieces.git] / code_c / Maasha / src / inc / common.h
1 /* Including standard libraries */
2 #include <stdio.h>
3 #include <stdlib.h>
4 #include <stdarg.h>
5 #include <string.h>
6 #include <unistd.h>
7 #include <ctype.h>
8 #include <math.h>
9 #include <assert.h>
10 #include <errno.h>
11
12 typedef unsigned char uchar;
13 typedef unsigned short ushort;
14 typedef long long llong;
15 typedef char bool;
16
17 #define TRUE 1
18 #define FALSE 0
19
20 /* Macros for determining min or max of two given values. */
21 #define MAX( a, b ) a < b ? b : a
22 #define MIN( a, b ) a > b ? b : a
23
24 /* Macros for abs and int functions. */
25 #define ABS( x ) ( ( x ) < 0 ) ? -( x ) : ( x )
26 #define INT( x ) ( int ) x
27
28 /* Neat debug macro. */
29 #define DEBUG_EXIT 0
30 #define die assert( DEBUG_EXIT )
31
32
33 /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> MISC <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
34
35
36 /* Return a binary number as a string of 1's and 0's. */
37 char *bits2string( uint bin );
38
39
40 /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
41
42