cmake: add example run targets

Signed-off-by: Matthias Kretz <kretz@kde.org>
SSE: drop #errors on already included intrinsics

renamed many reimplemented _mm_* functions from SseIntrinsics to drop
the _mm_ prefix. Still some more to go.

Signed-off-by: Matthias Kretz <kretz@kde.org>
AVX+Scalar: consistently return int from count()
AVX+Scalar: signed int from Mask::firstOne()

for consistency
casts test: use SFINAE instead of constexpr if

To get rid of some bogus warnings: make sure the relevant code is only
translated for template arguments where the code is also reached.

Signed-off-by: Matthias Kretz <kretz@kde.org>
simdarray: use int for compares in shifted

Size is size_t and comparing that to a signed int variable which can be
negative is asking for trouble. So rather have all int ops done with
signed ints.
use equal signedness for int compares

since Size, sizeof, and STL's size() is of type size_t, most compares
have unsigned on one side. Changed the type or casted appropriately to
fix the warnings.

Signed-off-by: Matthias Kretz <kretz@kde.org>
compile fixes after SSE intrinsics changes

clang found a few more places where the wrong function name was used.
Also the #define in avx/intrinsics.h was clashing with a function in the
SseIntrinsics namespace.

Signed-off-by: Matthias Kretz <kretz@kde.org>
simdarray: implement non-member compare operators

Signed-off-by: Matthias Kretz <kretz@kde.org>