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
);
14 if (arch_big_endian
) {
15 predefine("_MIPSEB", 1, "1");
16 predefine("__MIPSEB", 1, "1");
17 predefine("__MIPSEB__", 1, "1");
19 predefine("_MIPSEL", 1, "1");
20 predefine("__MIPSEL", 1, "1");
21 predefine("__MIPSEL__", 1, "1");
26 static void predefine_mips32(const struct target
*self
)
31 const struct target target_mips32
= {
37 .bits_in_longdouble
= 64,
38 .max_fp_alignment
= 8,
40 .target_64bit
= &target_mips64
,
42 .predefine
= predefine_mips32
,
46 static void predefine_mips64(const struct target
*self
)
48 predefine("__mips64", 1, "64");
53 const struct target target_mips64
= {
60 .target_32bit
= &target_mips32
,
62 .predefine
= predefine_mips64
,