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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [921113-1.c] - Diff between revs 297 and 338

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

Rev 297 Rev 338
#define STACK_REQUIREMENT (128 * 128 * 4 + 1024)
#define STACK_REQUIREMENT (128 * 128 * 4 + 1024)
#if defined (STACK_SIZE) && STACK_SIZE < STACK_REQUIREMENT
#if defined (STACK_SIZE) && STACK_SIZE < STACK_REQUIREMENT
main () { exit (0); }
main () { exit (0); }
#else
#else
 
 
typedef struct {
typedef struct {
  float wsx;
  float wsx;
} struct_list;
} struct_list;
 
 
typedef struct_list *list_t;
typedef struct_list *list_t;
 
 
typedef struct {
typedef struct {
  float x, y;
  float x, y;
} vector_t;
} vector_t;
 
 
w(float x, float y) {}
w(float x, float y) {}
 
 
f1(float x, float y)
f1(float x, float y)
{
{
  if (x != 0 || y != 0)
  if (x != 0 || y != 0)
    abort();
    abort();
}
}
f2(float x, float y)
f2(float x, float y)
{
{
  if (x != 1 || y != 1)
  if (x != 1 || y != 1)
    abort();
    abort();
}
}
 
 
gitter(int count, vector_t pos[], list_t list, int *nww, vector_t limit[2], float r)
gitter(int count, vector_t pos[], list_t list, int *nww, vector_t limit[2], float r)
{
{
  float d;
  float d;
  int gitt[128][128];
  int gitt[128][128];
 
 
  f1(limit[0].x, limit[0].y);
  f1(limit[0].x, limit[0].y);
  f2(limit[1].x, limit[1].y);
  f2(limit[1].x, limit[1].y);
 
 
  *nww = 0;
  *nww = 0;
 
 
  d = pos[0].x;
  d = pos[0].x;
  if (d <= 0.)
  if (d <= 0.)
    {
    {
      w(d, r);
      w(d, r);
      if (d <= r * 0.5)
      if (d <= r * 0.5)
        {
        {
          w(d, r);
          w(d, r);
          list[0].wsx = 1;
          list[0].wsx = 1;
        }
        }
    }
    }
}
}
 
 
vector_t pos[1] = {{0., 0.}};
vector_t pos[1] = {{0., 0.}};
vector_t limit[2] = {{0.,0.},{1.,1.}};
vector_t limit[2] = {{0.,0.},{1.,1.}};
 
 
main()
main()
{
{
  int nww;
  int nww;
  struct_list list;
  struct_list list;
 
 
  gitter(1, pos, &list, &nww, limit, 1.);
  gitter(1, pos, &list, &nww, limit, 1.);
  exit(0);
  exit(0);
}
}
 
 
#endif
#endif
 
 

powered by: WebSVN 2.1.0

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