From 1a47186a6eff7c26a734489fb7888e4fdccfecef Mon Sep 17 00:00:00 2001
From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de>
Date: Wed, 19 Apr 2017 10:23:24 +0200
Subject: [PATCH] [bugfix] Guard Vec8d with MAX_VECTOR_SIZE

---
 dune/perftool/common/vectorclass.hh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dune/perftool/common/vectorclass.hh b/dune/perftool/common/vectorclass.hh
index a3c71167..8d31883e 100644
--- a/dune/perftool/common/vectorclass.hh
+++ b/dune/perftool/common/vectorclass.hh
@@ -590,6 +590,7 @@ static inline Vec4d blend4d(Vec4d const & a, Vec4d const & b) {
   return r;
 }
 
+#if MAC_VECTOR_SIZE >= 512
 
 struct Vec8d
 {
@@ -1008,6 +1009,8 @@ static inline Vec8d blend8d(Vec8d const & a, Vec8d const & b) {
   return r;
 }
 
+#endif // MAC_VECTOR_SIZE >= 512
+
 #endif // ENABLE_COUNTER
 
 #endif // DUNE_PDELAB_COMMON_VECTORCLASS_HH
-- 
GitLab