There is a new toolchain called ARM64EC on MSVC which allows linking x64 objects to ARM64 objects. It defines multiple architecture preprocessor definition including but not limited to `_M_X64`, `_M_ARM64` and `_M_ARM64EC`. The original implementation will fail if compiling to ARM64EC.
28 lines
1.1 KiB
C
28 lines
1.1 KiB
C
/******************************************************************************
|
|
Copyright (C) 2019 by Peter Geis <pgwipeout@gmail.com>
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
******************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86)) && \
|
|
!(defined(_M_ARM64) || defined(_M_ARM64EC))
|
|
|
|
#include <emmintrin.h>
|
|
#else
|
|
#define SIMDE_ENABLE_NATIVE_ALIASES
|
|
#include "simde/x86/sse2.h"
|
|
#endif
|