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++
/*
* SPDX-FileCopyrightText: 2022 L. E. Segovia <[email protected]>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef KIS_XSIMD_CONFIG_HPP
#define KIS_XSIMD_CONFIG_HPP
// MSVC patching.
#if defined(_MSC_VER)
#if defined(_M_ARM64)
#ifndef NDEBUG
#pragma message("Patching over MSVC for aarch64.")
#endif
#define __ARM_ARCH 8
#define __aarch64__ 1
#define __ARM_NEON 1
#endif
#if defined(_M_ARM)
#ifndef NDEBUG
#pragma message("Patching over MSVC for arm-v7a.")
#endif
#define __ARM_ARCH _M_ARM
#define __ARM_NEON 1
#endif
#endif
#include <xsimd/xsimd.hpp>
#endif // KIS_XSIMD_CONFIG_HPP