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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr28162.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O3" } */
3
 
4
void Lag_max_wght(float corr[], long wght_flg)
5
{
6
     float t0, max;
7
     const float *ww;
8
     long i;
9
     if ( wght_flg > 0 ) {
10
        for ( i = 143; i >= 20; i-- ) {
11
           t0 = corr[ - i] * *ww--;
12
           if ( t0 >= max )
13
             max = t0;
14
        }
15
     }
16
}
17
 

powered by: WebSVN 2.1.0

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