6 static void init_x86(const struct target
*target
)
10 wchar_ctype
= &ushort_ctype
;
13 int64_ctype
= &llong_ctype
;
14 uint64_ctype
= &ullong_ctype
;
15 wint_ctype
= &int_ctype
;
18 wint_ctype
= &int_ctype
;
21 wchar_ctype
= &int_ctype
;
22 wint_ctype
= &int_ctype
;
28 static void predefine_i386(const struct target
*self
)
30 predefine("__i386__", 1, "1");
31 predefine("__i386", 1, "1");
32 predefine_nostd("i386");
35 const struct target target_i386
= {
42 .bits_in_longdouble
= 96,
43 .max_fp_alignment
= 4,
46 .target_64bit
= &target_x86_64
,
48 .predefine
= predefine_i386
,
52 static void predefine_x86_64(const struct target
*self
)
54 predefine("__x86_64__", 1, "1");
55 predefine("__x86_64", 1, "1");
56 predefine("__amd64__", 1, "1");
57 predefine("__amd64", 1, "1");
60 const struct target target_x86_64
= {
67 .bits_in_longdouble
= 128,
68 .max_fp_alignment
= 16,
71 .target_32bit
= &target_i386
,
73 .predefine
= predefine_x86_64
,