Skip to content
Snippets Groups Projects
Commit 85ef029d authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Guard Vec8d template specialization with MAX_VECTOR_SIZE

parent efdbe690
No related branches found
No related tags found
No related merge requests found
...@@ -28,17 +28,21 @@ struct base_floatingpoint<Vec4d> ...@@ -28,17 +28,21 @@ struct base_floatingpoint<Vec4d>
}; };
template<> template<>
struct base_floatingpoint<Vec8d> struct base_floatingpoint<Vec8f>
{ {
using value = double; using value = float;
}; };
#if MAX_VECTOR_SIZE >= 512
template<> template<>
struct base_floatingpoint<Vec8f> struct base_floatingpoint<Vec8d>
{ {
using value = float; using value = double;
}; };
#endif
#else #else
#include <algorithm> #include <algorithm>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment