#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 };