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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [990127-2.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
void
2
fpEq (double x, double y)
3
{
4
  if (x != y)
5
    abort ();
6
}
7
 
8
void
9
fpTest (double x, double y)
10
{
11
  double result1 = (35.7 * 100.0) / 45.0;
12
  double result2 = (x * 100.0) / y;
13
  fpEq (result1, result2);
14
}
15
 
16
main ()
17
{
18
  fpTest (35.7, 45.0);
19
  exit (0);
20
}

powered by: WebSVN 2.1.0

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