blob: a8c46346595a0be331920e9f572de32275c1aaf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* { dg-do compile } */
/* { dg-options "-ffast-math" } */
void foo(int n, int nreps, float tdgefa, float tdgesl)
{
float kflops,ops;
ops=((2.0*n*n*n)/3.0+2.0*n*n);
kflops=2.*nreps*ops/(1000.*(tdgefa+tdgesl));
__builtin_printf ("%f\n", kflops);
}
|