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
|
#include "type.h"
/**
* Builtin types
*/
const struct cer_int int8_b = {
.sign = true,
.bits = 8,
};
const struct cer_int uint8_b = {
.sign = false,
.bits = 8,
};
const struct cer_int int16_b = {
.sign = true,
.bits = 16,
};
const struct cer_int uint16_b = {
.sign = false,
.bits = 16,
};
const struct cer_int int32_b = {
.sign = true,
.bits = 32,
};
const struct cer_int uint32_b = {
.sign = false,
.bits = 32,
};
const struct cer_int int64_b = {
.sign = true,
.bits = 64,
};
const struct cer_int uint64_b = {
.sign = false,
.bits = 64,
};
// Only 64-bit targets are supported (by QBE)
const struct cer_int int_b = int64_b;
const struct cer_int uint_b = uint64_b;
const struct cer_float float32_b = { .is64 = false };
const struct cer_float float64_b = { .is64 = true };
|