gecko/gfx/qcms
Steve Snyder 6a4d539353 Bug 512865. qcms: Improve SSE2 performance, add SSE support. r=jrmuizel
This patch greatly improves the performance of QCMS transformations on x86 &
x86_64 systems.  Some notes:

0. On 32-bit x86 systems it does runtime selection between non-SIMD, SSE, and
SSE2 code paths.

1. On x86_64 systems the SSE2 code path is always taken.  The non-SIMD and SSE
code paths are left intact, but contemporary versions of the GCC and MSVC
compilers will see that they cannot be reached and optimize them away.

2. The execution of the SSE2 code path is reduced by 67%, relative to the
original Intel/Microsoft formatted ASM code.  The relative performance is seen
on a Pentium4 (Northwood) 2.4GHz CPU with DDR1 RAM.

3. The SSE code path provides a 80% reduction in execution time, relative to
the non-SIMD code path.  The relative performance is seen on a Pentium3
(Coppermine) 1.26GHz CPU with SDRAM.

4. The code has been split out into separate files so that it can be built
with different cflags (-msse, and -msse2) when using gcc.

5. Try to land again, this time with __attribute__((__force_align_arg_pointer__))
to avoid crashes on linux.
2009-10-01 14:19:41 -04:00
..
iccread.c Bug 504766. qcms: Fix unaligned reads in qcms. r=jrmuizel 2009-09-08 11:36:28 -04:00
Makefile.in Bug 512865. qcms: Improve SSE2 performance, add SSE support. r=jrmuizel 2009-10-01 14:19:41 -04:00
qcms.h Bug 481926 - Rewrite color management component sr=vlad, r=ted, r=joedrew (\o/) 2009-04-07 12:02:11 -04:00
qcmsint.h Bug 512865. qcms: Improve SSE2 performance, add SSE support. r=jrmuizel 2009-10-01 14:19:41 -04:00
qcmstypes.h Bug 488747 - Fix endian handling in qcms. r=joe 2009-04-21 22:22:29 -04:00
transform-sse1.c Bug 512865. qcms: Improve SSE2 performance, add SSE support. r=jrmuizel 2009-10-01 14:19:41 -04:00
transform-sse2.c Bug 512865. qcms: Improve SSE2 performance, add SSE support. r=jrmuizel 2009-10-01 14:19:41 -04:00
transform.c Bug 512865. qcms: Improve SSE2 performance, add SSE support. r=jrmuizel 2009-10-01 14:19:41 -04:00