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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [unsorted/] [PYRBUG.c] - Blame information for rev 717

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

Line No. Rev Author Line
1 688 jeremybenn
typedef struct
2
{
3
  int v;
4
  int h;
5
} Point;
6
 
7
typedef struct
8
{
9
  int top, left, bottom, right;
10
} Rect;
11
 
12
int
13
x_PtInRect (Point pt, Rect *r)
14
{
15
  return  pt.v >= r->top  && pt.v < r->bottom
16
    && pt.h >= r->left && pt.h < r->right;
17
}

powered by: WebSVN 2.1.0

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