Krita Source Code Documentation
Loading...
Searching...
No Matches
xsimd_config.hpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 L. E. Segovia <amy@amyspark.me>
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef KIS_XSIMD_CONFIG_HPP
8#define KIS_XSIMD_CONFIG_HPP
9
10// MSVC patching.
11#if defined(_MSC_VER)
12#if defined(_M_ARM64)
13#ifndef NDEBUG
14#pragma message("Patching over MSVC for aarch64.")
15#endif
16#define __ARM_ARCH 8
17#define __aarch64__ 1
18#define __ARM_NEON 1
19#endif
20
21#if defined(_M_ARM)
22#ifndef NDEBUG
23#pragma message("Patching over MSVC for arm-v7a.")
24#endif
25#define __ARM_ARCH _M_ARM
26#define __ARM_NEON 1
27#endif
28#endif
29
30#include <xsimd/xsimd.hpp>
31
32#endif // KIS_XSIMD_CONFIG_HPP