Skip to content

armgit / krita

Public Imported from GitHub
0

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++

Support xsimd 14

Antonio Rojas94fb904052e7
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1668275c23..1282129c91 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1355,7 +1355,7 @@ endif()
## set_package_properties report the lowest one if no
## xsimd is found
##
-foreach(xsimd_version 13 12 11 10 9 8.1.0)
+foreach(xsimd_version 14 13 12 11 10 9 8.1.0)
if(NOT xsimd_FOUND)
find_package(xsimd ${xsimd_version})
endif()
diff --git a/libs/multiarch/xsimd_extensions/config/xsimd_arch.hpp b/libs/multiarch/xsimd_extensions/config/xsimd_arch.hpp
index 214e611223..4728e1c193 100644
--- a/libs/multiarch/xsimd_extensions/config/xsimd_arch.hpp
+++ b/libs/multiarch/xsimd_extensions/config/xsimd_arch.hpp
@@ -41,6 +41,9 @@
namespace xsimd
{
+# if XSIMD_VERSION_MAJOR >= 14
+using generic = common;
+# endif
#if defined(XSIMD_IMPL) && (XSIMD_IMPL & IMPL_MASK) == Scalar
using current_arch = generic;
#elif !defined(XSIMD_IMPL)