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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [pr39260.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-options "-O2 -fgraphite-identity -ffast-math" } */
2
 
3
VBR_encode_frame (int mode_gr, int channels_out, int max_bits[2][2])
4
{
5
 int max_nbits_ch[2][2];
6
 int gr, ch;
7
 for (gr = 0; gr < mode_gr; ++gr)
8
   {
9
     float f[2], s = 0;
10
     for (ch = 0; ch < channels_out; ++ch)
11
       if (max_nbits_ch[gr][ch] > 0)
12
         s += f[ch];
13
     for (ch = 0; ch < channels_out; ++ch)
14
       if (s > 0)
15
         max_nbits_ch[gr][ch] = 7680 * f[ch] / s;
16
   }
17
}

powered by: WebSVN 2.1.0

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