diff options
Diffstat (limited to 'sc/inc/arraysumfunctor.hxx')
-rw-r--r-- | sc/inc/arraysumfunctor.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/inc/arraysumfunctor.hxx b/sc/inc/arraysumfunctor.hxx index d251b4a6f9fb..b727f5893a8c 100644 --- a/sc/inc/arraysumfunctor.hxx +++ b/sc/inc/arraysumfunctor.hxx @@ -19,8 +19,9 @@ namespace sc::op { /* Checkout available optimization options */ -const bool hasAVX = cpuid::hasAVX(); -const bool hasSSE2 = cpuid::hasSSE2(); +const bool hasAVX512F = hasAVX512FCode() && cpuid::hasAVX512F(); +const bool hasAVX = hasAVXCode() && cpuid::hasAVX(); +const bool hasSSE2 = hasSSE2Code() && cpuid::hasSSE2(); /** * If no boosts available, Unrolled KahanSum. |