Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
KoStreamedMath: fix build on XSIMD_NO_SUPPORTED_ARCHITECTURE
Yaakov Selkowitz778aa9eb76b4
diff --git a/libs/pigment/compositeops/KoStreamedMath.h b/libs/pigment/compositeops/KoStreamedMath.hindex 89dbe26854..000530bb2b 100644--- a/libs/pigment/compositeops/KoStreamedMath.h+++ b/libs/pigment/compositeops/KoStreamedMath.h@@ -9,10 +9,6 @@#ifndef __KOSTREAMED_MATH_H#define __KOSTREAMED_MATH_H-#if defined(XSIMD_NO_SUPPORTED_ARCHITECTURE)-#error "Trying to use SIMD with an unknown architecture!"-#endif-#include <cstdint>#include <cstring>#include <iostream>@@ -116,6 +112,8 @@ struct OptiRound {}};+#if !defined(XSIMD_NO_SUPPORTED_ARCHITECTURE)+template<typename _impl>struct OptiDiv {using float_v = xsimd::batch<float, _impl>;@@ -842,6 +840,8 @@ struct PixelWrapper<float, _impl> {}};+#endif /* !defined(XSIMD_NO_SUPPORTED_ARCHITECTURE) */+namespace KoStreamedMathFunctions{template<int pixelSize>