Fixup details for non-x86 simd compat, fix CI linux cross-compile
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
6658153ed8
commit
a8a5cea9fb
16 changed files with 165 additions and 182 deletions
52
include/simd-compat/simd-compat.h
Normal file
52
include/simd-compat/simd-compat.h
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* DISTRHO Cardinal Plugin
|
||||
* Copyright (C) 2021-2024 Filipe Coelho <falktx@falktx.com>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
// native up to SSE3
|
||||
#if (defined(_M_X64) || defined(__amd64__) || defined(__SSE2__) || (defined(_M_IX86_FP) && _M_IX86_FP == 2)) && !defined(__EMSCRIPTEN__) && !defined(CARDINAL_NOSIMD)
|
||||
# define SIMDE_X86_MMX_NATIVE
|
||||
# define SIMDE_X86_SSE_NATIVE
|
||||
# define SIMDE_X86_SSE2_NATIVE
|
||||
# define SIMDE_X86_SSE3_NATIVE
|
||||
#else
|
||||
# define SIMDE_X86_MMX_NO_NATIVE
|
||||
# define SIMDE_X86_SSE_NO_NATIVE
|
||||
# define SIMDE_X86_SSE2_NO_NATIVE
|
||||
# define SIMDE_X86_SSE3_NO_NATIVE
|
||||
#endif
|
||||
|
||||
// everything else is emulated
|
||||
#define SIMDE_X86_SSSE3_NO_NATIVE
|
||||
#define SIMDE_X86_SSE4_1_NO_NATIVE
|
||||
#define SIMDE_X86_SSE4_2_NO_NATIVE
|
||||
#define SIMDE_X86_XOP_NO_NATIVE
|
||||
#define SIMDE_X86_AVX_NO_NATIVE
|
||||
#define SIMDE_X86_AVX2_NO_NATIVE
|
||||
#define SIMDE_X86_FMA_NO_NATIVE
|
||||
#define SIMDE_X86_AVX512F_NO_NATIVE
|
||||
#define SIMDE_X86_AVX512BF16_NO_NATIVE
|
||||
#define SIMDE_X86_AVX512BW_NO_NATIVE
|
||||
#define SIMDE_X86_AVX512VL_NO_NATIVE
|
||||
#define SIMDE_X86_AVX512DQ_NO_NATIVE
|
||||
#define SIMDE_X86_AVX512CD_NO_NATIVE
|
||||
#define SIMDE_X86_AVX5124VNNIW_NO_NATIVE
|
||||
#define SIMDE_X86_AVX512VNNI_NO_NATIVE
|
||||
#define SIMDE_X86_AVX512VBMI2_NO_NATIVE
|
||||
#define SIMDE_X86_AVX512VBMI_NO_NATIVE
|
||||
#define SIMDE_X86_AVX512BITALG_NO_NATIVE
|
||||
#define SIMDE_X86_AVX512VPOPCNTDQ_NO_NATIVE
|
||||
#define SIMDE_X86_AVX512VP2INTERSECT_NO_NATIVE
|
||||
#define SIMDE_X86_SVML_NO_NATIVE
|
||||
|
||||
// control wasm simd state
|
||||
#ifdef __EMSCRIPTEN__
|
||||
# ifdef CARDINAL_NOSIMD
|
||||
# define SIMDE_WASM_SIMD128_NO_NATIVE
|
||||
# else
|
||||
# define SIMDE_WASM_SIMD128_NATIVE
|
||||
# endif
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue