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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20040317-2.c] - Diff between revs 149 and 154

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

Rev 149 Rev 154
typedef struct _ScaleRec *ScaleWidget;
typedef struct _ScaleRec *ScaleWidget;
typedef struct
typedef struct
{
{
  short *x;
  short *x;
  unsigned short *width;
  unsigned short *width;
} Table;
} Table;
typedef struct
typedef struct
{
{
  Table table;
  Table table;
} ScalePart;
} ScalePart;
typedef struct _ScaleRec
typedef struct _ScaleRec
{
{
  ScalePart scale;
  ScalePart scale;
} ScaleRec;
} ScaleRec;
static int
static int
FindPixel (ScaleWidget sw, short x, short y,
FindPixel (ScaleWidget sw, short x, short y,
       short * img_x, short * img_y, unsigned long * img_pixel)
       short * img_x, short * img_y, unsigned long * img_pixel)
{
{
  if (sw->scale.table.x[(int) *img_x] +
  if (sw->scale.table.x[(int) *img_x] +
      (short) sw->scale.table.width[(int) *img_x] < x)
      (short) sw->scale.table.width[(int) *img_x] < x)
    {
    {
      ++*img_x;
      ++*img_x;
      return FindPixel (sw, x, y, img_x, img_y, img_pixel);
      return FindPixel (sw, x, y, img_x, img_y, img_pixel);
    }
    }
}
}
 
 

powered by: WebSVN 2.1.0

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