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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr51600.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
template inline T min(T a, T b) { return a < b ? a : b; }
2
double cornerbound(double *P, double (*m)(double, double))
3
{
4
  double b=m(P[0],P[3]);
5
  return m(b,P[12]);
6
}
7
void bound(double *P, double (*m)(double, double), double b)
8
{
9
  m(b,cornerbound(P,m));
10
}
11
void bounds(double fuzz, unsigned maxdepth)
12
{
13
  double Px[]={};
14
  double bx=Px[0];
15
  bound(Px,min,bx);
16
}

powered by: WebSVN 2.1.0

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