Re: [Pixman] Use of bitwise operators on vectors with Boolean results

2014-06-27 Thread Michael Tautschnig
[...] as, at least on the platforms that I tried, comparisons on vectors yield (unsigned)-1 as representation of true. Yes, this behaves exactly as documented at: https://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html Vectors are compared element-wise producing 0 when

[Pixman] [PATCH 03/13] MIPS: dspr2: Removed build restrictions and repair compiler's check

2014-06-27 Thread Nemanja Lukic
Build restriction wasn't good since it demands '-mips32r2' in CFLAGS during configuration to enable DSPr2 optimizations. Additional CFLAGS are not needed now and pixman could build targeting the lowest common denominator. Architecture and ISA are set in inline assembler to allow compiler to build

[Pixman] [PATCH 02/13] MIPS: update author's e-mail address

2014-06-27 Thread Nemanja Lukic
--- pixman/pixman-mips-dspr2-asm.S |2 +- pixman/pixman-mips-dspr2-asm.h |2 +- pixman/pixman-mips-dspr2.c |2 +- pixman/pixman-mips-dspr2.h |2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pixman/pixman-mips-dspr2-asm.S

[Pixman] [PATCH 07/13] MIPS: mips32r2: empty implementation with runtime detection

2014-06-27 Thread Nemanja Lukic
configure.ac - added compiler's check for mips32r2 Makefile.am - added files for mips32r2 support pixman-mips.c - runtime detection extended to support mips32r2 (searches mips32r2 cores or 'mips32r2' in ASEs implemented (for kernels = 3.7))

[Pixman] [PATCH 06/13] MIPS: dspr2: runtime detection extended

2014-06-27 Thread Nemanja Lukic
isa filed (mips32r2) is available from kernel version 3.9 ASEs implemented field (dsp, dsp2) is available from 3.7 In older kernel versions dsp represents both DSPr1 and DSPr2 if kernel version is 3.7 and above runtime detection tries to find 'dsp2' in /proc/cpuinfo. If it fails or if kernel

[Pixman] [PATCH 12/13] MIPS: disabled non 32-bit platforms

2014-06-27 Thread Nemanja Lukic
There are important differences in the ABI, since saved registers or passed values can take twice as much stack space. This patch add mechanism which allows optimizations to be run only on 32-bit platforms since all optimizations are done in assembly. --- pixman/pixman-mips.c |4 1 files

[Pixman] [PATCH 05/13] Implementing memcpy through pointer

2014-06-27 Thread Nemanja Lukic
pointer to function (memcpy) added to pixman_implementation_t and it points to C version of memcpy (linked in pixman-general.c). Function to call is pixman_memcpy and every call of memcpy is replaced with pixman_memcpy. If there is optimized version of memcpy it should be linked with imp-memcpy.

[Pixman] [PATCH 09/13] MIPS: dspr1: empty implementation with runtime detection

2014-06-27 Thread Nemanja Lukic
configure.ac - added compiler's check for dspr1 Makefile.am - added files for dspr1 support pixman-mips.c - runtime detection extended to support dspr1 (searches dspr1 cores or 'dsp' in ASEs implemented (for kernels = 3.7)) pixman-mips-dspr1.c -