~rsandifo/+junk/loop-microbenchmarks

« back to all changes in this revision

Viewing changes to spec/libav/wmavoice.txt

  • Committer: Richard Sandiford
  • Date: 2011-09-02 13:13:41 UTC
  • Revision ID: richard.sandiford@linaro.org-20110902131341-3t2rxnd017t877p8
Initial commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
count 65
 
2
repeat 150
 
3
arrays {
 
4
  float synth_pf[65 * 2];
 
5
  float coeffs[65 * 2];
 
6
}
 
7
loop {
 
8
  for (int n = 1; n < COUNT - 1; n++)
 
9
    {
 
10
      float v1 = synth_pf[n * 2], v2 = synth_pf[n * 2 + 1];
 
11
      synth_pf[n * 2] = v1 * coeffs[n * 2] - v2 * coeffs[n * 2 + 1];
 
12
      synth_pf[n * 2 + 1] = v2 * coeffs[n * 2] + v1 * coeffs[n * 2 + 1];
 
13
    }
 
14
}