commit | e90a4ea534b110a43df87a05587c53cd78569467 | [log] [tgz] |
---|---|---|
author | Chris Wilson <chris@chris-wilson.co.uk> | Fri Jan 18 16:31:14 2013 +0000 |
committer | Dave Airlie <airlied@redhat.com> | Fri Feb 08 11:52:00 2013 +1000 |
tree | 0959edcc69f8e333ddc61ad6cd64d99dfeaa07e3 | |
parent | bcb39af4486be07e896fc374a2336bad3104ae0a [diff] |
drm/udl: Inline memcmp() for RLE compression of xfer As we use a variable length the compiler does not realise that it is a fixed value of either 2 or 4 bytes. Instead of performing the inline comparison itself, the compiler inserts a function call to the generic memcmp routine which is optimised for long comparisons of variable length. That turns out to be quite expensive... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Dave Airlie <airlied@redhat.com>