-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathassoc.h
46 lines (36 loc) · 965 Bytes
/
assoc.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
#ifndef _ASSOC_H
#define _ASSOC_H
#include <sys/time.h>
#include <iostream>
#include <fstream>
#define boolean char
#define FALSE 0
#define TRUE 1
#define DONTCARE 2
//for returning subset info while intersecting
#define AeqB 0
#define AsubB 1
#define BsubA 2
#define AneqB 3
#define MBYTE (1024*1024)
#define ITSZ sizeof(int)
#define getsec(tv) tv.tv_sec+tv.tv_usec/1000000.0
extern struct timeval tp;
#define seconds(tm) gettimeofday(&tp,(struct timezone *)0);\
tm=getsec(tp);
typedef int (*CMPFUNC) (const void * a, const void * b);
typedef void (*CLIQFUNC) (int *cliq, int cliqsz);
extern int DBASE_NUM_TRANS;
extern int DBASE_MAXITEM;
extern float DBASE_AVG_TRANS_SZ;
extern int DBASE_MINTRANS;
extern int DBASE_MAXTRANS;
extern int MINSUPPORT;
extern long AVAILMEM;
extern int num_partitions;
extern boolean sort_ascend;
extern boolean use_char_extl2;
extern boolean use_diff;
extern boolean diff_input;
extern boolean use_output;
#endif //_ASSOC_H