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/] [acc1.c] - Blame information for rev 399

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

Line No. Rev Author Line
1 297 jeremybenn
/* { dg-options "-ffast-math" } */
2
 
3
/* Fast maths allows tail recursion to be turned into iteration.  */
4
 
5
double
6
foo (int n, double f)
7
{
8
  if (n == 0)
9
    return f;
10
  else
11
    return f + foo (n - 1, f);
12
}
13
 
14
double
15
bar (int n, double f)
16
{
17
  if (n == 0)
18
    return f;
19
  else
20
    return f * bar (n - 1, f);
21
}

powered by: WebSVN 2.1.0

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