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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20040317-2.c] - Blame information for rev 859

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

Line No. Rev Author Line
1 297 jeremybenn
typedef struct _ScaleRec *ScaleWidget;
2
typedef struct
3
{
4
  short *x;
5
  unsigned short *width;
6
} Table;
7
typedef struct
8
{
9
  Table table;
10
} ScalePart;
11
typedef struct _ScaleRec
12
{
13
  ScalePart scale;
14
} ScaleRec;
15
static int
16
FindPixel (ScaleWidget sw, short x, short y,
17
       short * img_x, short * img_y, unsigned long * img_pixel)
18
{
19
  if (sw->scale.table.x[(int) *img_x] +
20
      (short) sw->scale.table.width[(int) *img_x] < x)
21
    {
22
      ++*img_x;
23
      return FindPixel (sw, x, y, img_x, img_y, img_pixel);
24
    }
25
}

powered by: WebSVN 2.1.0

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