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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [930222-1.c] - Rev 868

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

typedef struct
  {
    long i;
    double f;
  } T;
 
f (T *n1, T *n2)
{
  if (g (n2))
    return n1->i - n2->i;
  else
    {
      double f = n1->f - n2->i;
      return f == 0.0 ? 0 : (f > 0.0 ? 1 : -1);
    }
}
 

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

powered by: WebSVN 2.1.0

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