6 static void predefine_mips(const struct target
*self
)
8 predefine("__mips__", 1, "1");
9 predefine("__mips", 1, "%d", ptr_ctype
.bit_size
);
10 predefine("_MIPS_SZINT", 1, "%d", int_ctype
.bit_size
);
11 predefine("_MIPS_SZLONG", 1, "%d", long_ctype
.bit_size
);
12 predefine("_MIPS_SZPTR", 1, "%d", ptr_ctype
.bit_size
);
16 static void predefine_mips32(const struct target
*self
)
21 const struct target target_mips32
= {
27 .bits_in_longdouble
= 64,
28 .max_fp_alignment
= 8,
30 .target_64bit
= &target_mips64
,
32 .predefine
= predefine_mips32
,
36 static void predefine_mips64(const struct target
*self
)
38 predefine("__mips64", 1, "64");
43 const struct target target_mips64
= {
50 .target_32bit
= &target_mips32
,
52 .predefine
= predefine_mips64
,