shithub: scc

ref: 915befc8a258da8337f7329437fe819d5ce18a22
dir: /cc2/arch/amd64-sysv/types.c/

View raw version

#include "arch.h"
#include "../../cc2.h"


Type int8type = {
	.flags  = SIGNF | INTF,
	.size   = 1,
	.align  = 1
};

Type int16type = {
	.flags  = SIGNF | INTF,
	.size   = 2,
	.align  = 2
};

Type int32type = {
	.flags  = SIGNF | INTF,
	.size   = 4,
	.align  = 4
};

Type int64type = {
	.flags  = SIGNF | INTF,
	.size   = 8,
	.align  = 8
};

Type uint8type = {
	.flags  = INTF,
	.size   = 1,
	.align  = 1
};

Type uint16type = {
	.flags  = INTF,
	.size   = 2,
	.align  = 2
};

Type uint32type = {
	.flags  = INTF,
	.size   = 4,
	.align  = 4
};

Type uint64type = {
	.flags  = INTF,
	.size   = 8,
	.align  = 2
};

Type ptrtype = {
	.flags  = INTF,
	.size   = 8,
	.align  = 8
};

Type booltype = {
	.flags  = INTF,
	.size   = 1,
	.align  = 1
};

Type float32type = {
	.size   = 4,
	.align  = 4
};

Type float64type = {
	.size   = 8,
	.align  = 8
};

Type float80type = {
	.size   = 16,
	.align  = 16
};

Type voidtype = {
	.size = 0,
	.align = 0
};

Type elipsistype = {
	.size = 0,
	.align = 0
};