~rsandifo/+junk/loop-microbenchmarks

« back to all changes in this revision

Viewing changes to spec/libav/avs.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 256
 
2
repeat 150
 
3
arrays {
 
4
  uint8_t buf[COUNT * 3];
 
5
  uint32_t pal[COUNT];
 
6
}
 
7
inputs {
 
8
  int first = 0;
 
9
  int last = COUNT;
 
10
}
 
11
loop {
 
12
  for (int i=first; i<last; i++, buf+=3)
 
13
    pal[i] = (buf[0] << 18) | (buf[1] << 10) | (buf[2] << 2);
 
14
}