shithub: scc

ref: 0088b2b37951157ee736e051c6479f864d552589
dir: /cc2/target/z80-scc/types.c/

View raw version
static char sccsid[] = "@(#) ./cc2/arch/z80/types.c";

#include "../../../inc/scc.h"
#include "../../cc2.h"


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

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

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

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

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

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

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

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

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

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

Type float32type = {
	.flags  = FLOATF,
	.size   = 4,
	.align  = 1
};

Type float64type = {
	.flags  = FLOATF,
	.size   = 4,
	.align  = 1
};

Type float80type = {
	.flags  = FLOATF,
	.size   = 4,
	.align  = 1
};

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

/* this types is not going to be used in this arch */
Type arg_type = {
        .size = 0,
        .align = 0
};