Commit a7b1a539 authored by Jö Fahlke's avatar Jö Fahlke

[!10] add missing `operator==` overloads

Merge branch 'fix/fix-clang-errors' into 'master'

vectorclass doesnt provide operator== for mask-types so we need to add them
ourselves

fixes <#5>

See merge request [!10]

  [!10]: gitlab.dune-project.org/extensions/dune-vectorclass/merge_requests/10


Closes #5
parents 90e84dbc e4a0e516
Pipeline #10528 passed with stage
in 8 minutes and 39 seconds
......@@ -449,6 +449,10 @@ namespace VCL_NAMESPACE {
DUNE_VECTORCLASS_OPASSIGN_V(Vec2q, >>);
DUNE_VECTORCLASS_OPINFIX_VV(Vec2q, >>);
// these are necessary to resolve ambiguous overloads.
inline Vec4fb operator==(Vec4fb a, Vec4fb b) { return !(a ^ b); }
inline Vec2db operator==(Vec2db a, Vec2db b) { return !(a ^ b); }
#endif
#if MAX_VECTOR_SIZE >= 256
......@@ -489,11 +493,9 @@ namespace VCL_NAMESPACE {
DUNE_VECTORCLASS_OPASSIGN_V(Vec4q, >>);
DUNE_VECTORCLASS_OPINFIX_VV(Vec4q, >>);
#if INSTRSET < 7 // no native AVX
// these are necessary to resolve ambiguous overloads.
inline Vec8fb operator==(Vec8fb a, Vec8fb b) { return !(a ^ b); }
inline Vec4db operator==(Vec4db a, Vec4db b) { return !(a ^ b); }
#endif // INSTRSET < 7
#endif // MAX_VECTOR_SIZE >= 256
#if MAX_VECTOR_SIZE >= 512
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment