URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
extern "C" double sqrt (double __x) throw ();
|
extern "C" double sqrt (double __x) throw ();
|
typedef double VECTOR[3];
|
typedef double VECTOR[3];
|
enum { X = 0, Y = 1, Z = 2, T = 3 };
|
enum { X = 0, Y = 1, Z = 2, T = 3 };
|
inline void VLength(double& a, const VECTOR b)
|
inline void VLength(double& a, const VECTOR b)
|
{
|
{
|
a = sqrt(b[X] * b[X] + b[Y] * b[Y] + b[Z] * b[Z]);
|
a = sqrt(b[X] * b[X] + b[Y] * b[Y] + b[Z] * b[Z]);
|
}
|
}
|
int
|
int
|
All_Torus_Intersections(void)
|
All_Torus_Intersections(void)
|
{
|
{
|
double len;
|
double len;
|
VECTOR D;
|
VECTOR D;
|
VLength(len, D);
|
VLength(len, D);
|
VLength(len, D);
|
VLength(len, D);
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.