Move bounds checks for REPEAT_NONE to get_pixel()
authorSøren Sandmann Pedersen <sandmann@redhat.com>
Fri, 31 Jul 2009 11:29:31 +0000 (07:29 -0400)
committerSøren Sandmann Pedersen <sandmann@redhat.com>
Sat, 8 Aug 2009 20:52:38 +0000 (16:52 -0400)
commitc606a05213d1fe5d73b39454407414a2a245da39
tree9b182c3ebe93d4579901ead15e99fc08b5b3c12c
parent1bec3e8395a307812b25fb195823ac7cf2915340
Move bounds checks for REPEAT_NONE to get_pixel()

On a P4, this is a large speedup for the swfdec-fill-rate-2xaa trace:

After:

[ # ]  backend                         test   min(s) median(s) stddev. count
[  0]    image        swfdec-fill-rate-2xaa   33.061   33.061   0.00%    1/1

Before:

[ # ]  backend                         test   min(s) median(s) stddev. count
[  0]    image        swfdec-fill-rate-2xaa   40.342   40.342   0.00%    1/1

Pixman 0.14.0 produces this:

[ # ]  backend                         test   min(s) median(s) stddev. count
[  0]    image        swfdec-fill-rate-2xaa   36.896   36.896   0.00%    1/1
pixman/pixman-bits-image.c