summaryrefslogtreecommitdiff
path: root/lib/types.h
blob: daac873a28900cd7c949494ec830251d1dc81217 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

#include <inttypes.h>

typedef uint_fast32_t v_t;
typedef uint_fast8_t q_t;
typedef uint_fast8_t D_t;
typedef uint_fast16_t L_t;
typedef uint_fast64_t count_t;
typedef int_fast64_t h_t;

#define MAX_v INT_FAST32_MAX
#define MAX_Q INT_FAST8_MAX
#define MAX_D INT_FAST8_MAX
#define MAX_L INT_FAST16_MAX
#define MAX_COUNT INT_FAST64_MAX

#define PRIv PRIuFAST32
#define PRIq PRIuFAST8
#define PRID PRIuFAST8
#define PRIL PRIuFAST16
#define PRIcount PRIuFAST64
#define PRIh PRIFAST64