Apple ships a really old external as, so rather take the slightly buggy internal as

The FMA bug should be irrelevant for MacOS anyway - what MacOS system runs on an AMD Bulldozer?
clang 3.1 does not work with -no-integrated-as, I rather take the FMA bug
and the miscompilation disappeared again - keep a note about it
dox: make qhelpgenerator-wrapper more robust

newest quirk: qhelpgenerator only prints one error per run, thus many
runs are required to clean up the file

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

Since Vc can do proper conversions in the 0.7 release the Mandelbrot
implementation can be simplified.

Signed-off-by: Matthias Kretz <kretz@kde.org>
integer compare: unsigned values on both sides

A good compiler should notice that the literal 0 works safely here, but
not all compilers are that smart - so mark it as unsigned: 0u.

Signed-off-by: Matthias Kretz <kretz@kde.org>
work around ICC madness: invalid SSE intrinsic definitions

ICC happily defines SSE4 intrinsics even if the commandline options
specify that only SSE2 may be used for the target. Since ICC
additionally doesn't treat __m128 as a fundamental type (which it really
should...) Vc failed to compile if <random> (from libstdc++) was
included.

EVIL workaround: define the include guard of the ICC intrinsic headers
to stop the madness. This is only a solution for Vc 0.7. For Vc 1.0 I
want to have a cleaner solution (which I hope, should be easier with
C++11 and perfect forwarding).

fixes #636

Signed-off-by: Matthias Kretz <kretz@kde.org>
don't create c++11_* tests in ROOT

ROOT is either 100% built as C++11 or not. Letting Vc follow that makes
everything easier while still testing every possible usage of Vc.

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

this file was never meant to be in the repo anyway

Signed-off-by: Matthias Kretz <kretz@kde.org>
cmake: add build_tests target

I added a new custom target 'build_tests' that has all test executables
as dependency. In development versions build_tests is made with all, in
release versions you'll have to make build_tests explicitly. A standard
make all will then only build libVc.

Signed-off-by: Matthias Kretz <kretz@kde.org>
docs: don't generate LaTeX and man

The latex output from doxygen is broken (missing namespaces.tex) and the
man output looks too unreadable to be useful. So I'd rather only keep
the HTML variant for now. Until somebody wants to maintain one of these
other outputs.

Signed-off-by: Matthias Kretz <kretz@kde.org>
release script: no tests & build docs

* remove build_tests from all target for release tarballs
* run doxygen and store qch file and docs tarball

Signed-off-by: Matthias Kretz <kretz@kde.org>
release script: bail out if tagging fails

Signed-off-by: Matthias Kretz <kretz@kde.org>
docs: remove .qhp file when done

The .qhp file is an intermediate file that can be removed after the .qch
file is created.

Signed-off-by: Matthias Kretz <kretz@kde.org>
macros: fix __OPTIMIZE__ ifdef

The logic needs to check for defined() not just the value of
__OPTIMIZE__.

refs #655

Signed-off-by: Matthias Kretz <kretz@kde.org>
ctest: support ctest runs Debug

CMAKE_BUILD_TYPE was "hardcoded" to Release. Now the build_type
environment variable can overwrite this default. Also this string is now
added to the BUILD_NAME.

Signed-off-by: Matthias Kretz <kretz@kde.org>
workaround GCC not recognizing sizeof as immediate

GCC builtins that require an immediate don't compile with sizeof as
argument unless -O2 is given. This workaround assigns the value of the
sizeof operator to an enum and uses the enum as parameter to the
builtin.

Signed-off-by: Matthias Kretz <kretz@kde.org>
AVX: undef AVX2 intrinsics

Without optimization GCC 4.9 defines macros for some AVX2 intrinsics.
These clash with functions in Vc::AVX::. Therefore avx/intrinsics.h
undefs the macros then.

refs #655

Signed-off-by: Matthias Kretz <kretz@kde.org>
SSE: remove superfluous #error

this was already checked in global.h - drop it here

Signed-off-by: Matthias Kretz <kretz@kde.org>
test: have this test include x86intrin.h first

This way I have something appearing on the dashboard if there's a
problem.

refs #656

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