mmx/sse2: Use SIMPLE_NEAREST_FAST_PATH macro
authorBen Avison <bavison@riscosopen.org>
Tue, 26 May 2015 22:58:28 +0000 (23:58 +0100)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 1 Jun 2015 10:57:00 +0000 (13:57 +0300)
commit7f6692807902b840b81f860fb2196d2fb242d977
treef0b64e2a8268b4bfa52bee15c6021f7e37eca26d
parentdee5000abbf74d55cefe00243e5a9fff630c16cb
mmx/sse2: Use SIMPLE_NEAREST_FAST_PATH macro

There is some reordering, but the only significant thing to ensure that
the same routine is chosen is that a COVER fast path for a given
combination of operator and source/destination pixel formats must
precede all the variants of repeated fast paths for the same
combination. This patch (and the other mmx/sse2 one) still follows that
rule.

I believe that in every other case, the set of operations that match any
pair of fast paths that are reordered in these patches are mutually
exclusive. While there will be a very subtle timing difference due to
the distance through the table we have to search to find a match
(sometimes faster, sometime slower) there is no evidence that the tables
have been carefully ordered by frequency of occurrence - just for ease
of copy-and-pasting.

Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Acked-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
pixman/pixman-mmx.c
pixman/pixman-sse2.c