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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr42956.c] - Rev 297

Compare with Previous | Blame | View Log

typedef const int cint;
typedef struct {
} Bounds;
int ndim_, ncomp_, selectedcomp_, nregions_;
void *voidregion_;
typedef struct {
    double diff, err, spread;
} Errors;
typedef const Errors cErrors;
void Split(int iregion, int depth, int xregion)
{
  typedef struct {
      double avg, err, spread, chisq;
      double xmin[ndim_], xmax[ndim_];
  } Result;
  typedef struct region {
      Result result[ncomp_];
  } Region;
  Errors errors[ncomp_];
  int comp, ireg, xreg;
  for( ireg = iregion, xreg = xregion; ireg < nregions_; ireg = xreg++ )
    {
      Result *result = ((Region *)voidregion_)[ireg].result;
      for( comp = 0; comp < ncomp_; ++comp )
	{
	  Result *r = &result[comp];
	  cErrors *e = &errors[comp];
	  double c = e->diff;
	  if( r->err > 0 ) r->err = r->err*e->err + c;
	}
    }
}
 
 

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.