Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / compat / union-init.h
blob5add7b4a8001f74070c3e9cc234e0d109c6b0ef9
1 /* Function definitions that are used by multiple tests. */
3 #define INIT_CHAR(TYPE) \
4 void init##TYPE (TYPE *p, int i) \
5 { p->c = (char)i; }
7 INIT_CHAR(Ucs)
8 INIT_CHAR(Uci)
9 INIT_CHAR(Ucl)
10 INIT_CHAR(Ucll)
13 #define INIT_SHORT(TYPE) \
14 void init##TYPE (TYPE *p, int i) \
15 { p->s = (short)i; }
17 INIT_SHORT(Usi)
18 INIT_SHORT(Usl)
19 INIT_SHORT(Usll)
22 #define INIT_INT(TYPE) \
23 void init##TYPE (TYPE *p, int i) \
24 { p->i = i; }
26 INIT_INT(Uil)
27 INIT_INT(Uill)
30 #define INIT_LONG(TYPE) \
31 void init##TYPE (TYPE *p, int i) \
32 { p->l = (long)i; }
34 INIT_LONG(Ulll)