~rsandifo/+junk/loop-microbenchmarks

« back to all changes in this revision

Viewing changes to spec/libav/resample.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 512
 
2
repeat 100
 
3
arrays {
 
4
  uint8_t q[COUNT];
 
5
  uint8_t p[COUNT * 2];
 
6
}
 
7
inputs {
 
8
  uint32_t n = COUNT;
 
9
}
 
10
loop {
 
11
  while (n > 0)
 
12
    {
 
13
      q[0] = (p[0] + p[1]) >> 1;
 
14
      q++;
 
15
      p += 2;
 
16
      n--;
 
17
    }
 
18
}