[...]
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
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/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
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))
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
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
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.
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 -