-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.h
58 lines (48 loc) · 1.14 KB
/
types.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
54
55
56
57
58
/*
* =====================================================================================
*
* Filename: types.h
*
* Description: Definition of types used in Toci
*
* Version: 1.0
* Created: 10/10/11 16:48:22
* Revision: none
* Compiler: mpic++
*
* Author: Julio Cesar Garcia Vizcaino (garviz), [email protected]
* Company: CAOS
*
* =====================================================================================
*/
#ifndef TYPES_H
#define TYPES_H
#include <sys/types.h>
#include <limits.h>
#include <stdlib.h>
#include <stdio.h>
typedef unsigned char Uchar;
typedef unsigned short Ushort;
typedef unsigned long Uint;
typedef const unsigned long UintConst;
typedef signed long Sint;
typedef int (*Qsortcomparefunction)(const void *,const void *);
#define SHOWBOOL(B) ((B) ? "True" : "False")
#define LOGWORDSIZE 6
typedef Uint * Bref;
typedef Uint * Lref;
#define DIV2(N) ((N) >> 1)
struct ListType
{
Uint start, length;
};
typedef ListType Stringtype;
struct PairUint
{
Uint uint0, uint1;
};
struct ThreeUint
{
Uint uint0, uint1, uint2;
};
#endif