OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [compat/] [union-init.h] - Blame information for rev 404

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Function definitions that are used by multiple tests.  */
2
 
3
#define INIT_CHAR(TYPE)                 \
4
  void init##TYPE (TYPE *p, int i)      \
5
   { p->c = (char)i; }
6
 
7
INIT_CHAR(Ucs)
8
INIT_CHAR(Uci)
9
INIT_CHAR(Ucl)
10
INIT_CHAR(Ucll)
11
 
12
 
13
#define INIT_SHORT(TYPE)                \
14
  void init##TYPE (TYPE *p, int i)      \
15
   { p->s = (short)i; }
16
 
17
INIT_SHORT(Usi)
18
INIT_SHORT(Usl)
19
INIT_SHORT(Usll)
20
 
21
 
22
#define INIT_INT(TYPE)                  \
23
  void init##TYPE (TYPE *p, int i)      \
24
   { p->i = i; }
25
 
26
INIT_INT(Uil)
27
INIT_INT(Uill)
28
 
29
 
30
#define INIT_LONG(TYPE)                 \
31
  void init##TYPE (TYPE *p, int i)      \
32
   { p->l = (long)i; }
33
 
34
INIT_LONG(Ulll)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.