OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [pr38498.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-options "-O2" } */
2
 
3
double test_vector (float **data, int rows, int cols, int vqrows,double epsilon, int maxiter,int **mean, int *map)
4
{
5
    int i, j, r, it;
6
    double sqerr, prev_sqerr=0, t;
7
    unsigned int *sel;
8
    int *count;
9
    for (it = 0;; it++)
10
    {
11
        if ((sqerr == 0.0) || (it >= maxiter-1) ||((it > 0) && ( ((prev_sqerr - sqerr) / prev_sqerr) < epsilon )) )
12
            for (i = 0; i < vqrows; i++)
13
            {
14
                for (j = 0; j < cols; j++)
15
                    mean[i][j] = 0.0;
16
                count[i] = 0;
17
            }
18
    }
19
}

powered by: WebSVN 2.1.0

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