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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20071102-1.c] - Blame information for rev 749

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

Line No. Rev Author Line
1 688 jeremybenn
/* PR rtl-optimization/28062 */
2
/* Original testcase by Martin Michlmayr <tbm@cyrius.com> */
3
/* C testcase by Andrew Pinski <pinskia@gcc.gnu.org> */
4
 
5
struct _NSPoint
6
{
7
  float x;
8
  float y;
9
};
10
 
11
typedef struct _NSPoint NSPoint;
12
 
13
static inline NSPoint
14
NSMakePoint (float x, float y)
15
{
16
  NSPoint point;
17
  point.x = x;
18
  point.y = y;
19
  return point;
20
}
21
 
22
static inline NSPoint
23
RelativePoint (NSPoint point, NSPoint refPoint)
24
{
25
  return NSMakePoint (refPoint.x + point.x, refPoint.y + point.y);
26
}
27
 
28
NSPoint g(NSPoint refPoint)
29
{
30
  float pointA, pointB;
31
  return RelativePoint (NSMakePoint (0, pointA), refPoint);
32
}

powered by: WebSVN 2.1.0

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