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