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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [compat/] [union-init.h] - Diff between revs 298 and 384

Only display areas with differences | Details | Blame | View Log

Rev 298 Rev 384
/* Function definitions that are used by multiple tests.  */
/* Function definitions that are used by multiple tests.  */
 
 
#define INIT_CHAR(TYPE)                 \
#define INIT_CHAR(TYPE)                 \
  void init##TYPE (TYPE *p, int i)      \
  void init##TYPE (TYPE *p, int i)      \
   { p->c = (char)i; }
   { p->c = (char)i; }
 
 
INIT_CHAR(Ucs)
INIT_CHAR(Ucs)
INIT_CHAR(Uci)
INIT_CHAR(Uci)
INIT_CHAR(Ucl)
INIT_CHAR(Ucl)
INIT_CHAR(Ucll)
INIT_CHAR(Ucll)
 
 
 
 
#define INIT_SHORT(TYPE)                \
#define INIT_SHORT(TYPE)                \
  void init##TYPE (TYPE *p, int i)      \
  void init##TYPE (TYPE *p, int i)      \
   { p->s = (short)i; }
   { p->s = (short)i; }
 
 
INIT_SHORT(Usi)
INIT_SHORT(Usi)
INIT_SHORT(Usl)
INIT_SHORT(Usl)
INIT_SHORT(Usll)
INIT_SHORT(Usll)
 
 
 
 
#define INIT_INT(TYPE)                  \
#define INIT_INT(TYPE)                  \
  void init##TYPE (TYPE *p, int i)      \
  void init##TYPE (TYPE *p, int i)      \
   { p->i = i; }
   { p->i = i; }
 
 
INIT_INT(Uil)
INIT_INT(Uil)
INIT_INT(Uill)
INIT_INT(Uill)
 
 
 
 
#define INIT_LONG(TYPE)                 \
#define INIT_LONG(TYPE)                 \
  void init##TYPE (TYPE *p, int i)      \
  void init##TYPE (TYPE *p, int i)      \
   { p->l = (long)i; }
   { p->l = (long)i; }
 
 
INIT_LONG(Ulll)
INIT_LONG(Ulll)
 
 

powered by: WebSVN 2.1.0

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