OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [compat/] [mixed-struct-init.h] - Blame information for rev 867

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

Line No. Rev Author Line
1 149 jeremybenn
/* Function definitions that are used by multiple tests.  */
2
 
3
void initScd (Scd *p, int i)
4
{ p->c = (char)i; p->d = (double)i+1; }
5
void initScdc (Scdc *p, int i)
6
{ p->c = (char)i; p->d = (double)i+1; p->b = (char)i+2; }
7
void initSd (Sd *p, int i)
8
{ p->d = (double)i; }
9
void initSdi (Sdi *p, int i)
10
{ p->d = (double)i; p->i = i+1; }
11
void initScsds (Scsds *p, int i)
12
{ p->c = (char)i; p->sd.d = (double)i+1; }
13
void initScsdsc (Scsdsc *p, int i)
14
{ p->c = (char)i; p->sd.d = (double)i+1; p->b = (char)i+2; }
15
void initScsdis (Scsdis *p, int i)
16
{ p->c = (char)i; p->sdi.d = (double)i+1; p->sdi.i = i+2; }
17
void initScsdisc (Scsdisc *p, int i)
18
{ p->c = (char)i; p->sdi.d = (double)i+1; p->sdi.i = i+2; p->b = (char)i+3; }
19
void initSsds (Ssds *p, int i)
20
{ p->sd.d = (double)i; }
21
void initSsdsc (Ssdsc *p, int i)
22
{ p->sd.d = (double)i; p->c = (char)i+1; }
23
void initScssdss (Scssdss *p, int i)
24
{ p->c = (char)i; p->ssds.sd.d = (double)i+1; }
25
void initScssdssc (Scssdssc *p, int i)
26
{ p->c = (char)i; p->ssds.sd.d = (double)i+1; p->b = (char)i+2; }
27
 
28
void initSfi (Sfi *x, int i)
29
{ x->f = (float)i; x->i = i+1; }
30
void initSfii (Sfii *x, int i)
31
{ x->f = (float)i; x->i1 = i+1; x->i2 = i+2; }
32
void initSfifi (Sfifi *x, int i)
33
{ x->fi.f = (float)i; x->fi.i = i+1; }
34
void initSfiifii (Sfiifii *x, int i)
35
{ x->fii.f = (float)i; x->fii.i1 = i+1; x->fii.i2 = i+2; }

powered by: WebSVN 2.1.0

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