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/] [g++.dg/] [lto/] [20091004-3_1.C] - Blame information for rev 318

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

Line No. Rev Author Line
1 301 jeremybenn
extern "C" double sqrt (double __x) throw ();
2
typedef double VECTOR[3];
3
enum { X = 0,  Y = 1,  Z = 2,  T = 3 };
4
inline void VLength(double& a, const VECTOR b)
5
{
6
  a = sqrt(b[X] * b[X] + b[Y] * b[Y] + b[Z] * b[Z]);
7
}
8
int
9
All_Torus_Intersections(void)
10
{
11
  double len;
12
  VECTOR D;
13
  VLength(len, D);
14
  VLength(len, D);
15
}
16
 

powered by: WebSVN 2.1.0

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