mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-02 22:06:10 +00:00
Use SIMDe for NEON acceleration
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +1,6 @@
|
|||||||
[submodule "enet"]
|
[submodule "enet"]
|
||||||
path = enet
|
path = enet
|
||||||
url = https://github.com/cgutman/enet.git
|
url = https://github.com/cgutman/enet.git
|
||||||
|
[submodule "nanors/deps/simde"]
|
||||||
|
path = nanors/deps/simde
|
||||||
|
url = https://github.com/simd-everywhere/simde-no-tests.git
|
||||||
|
|||||||
@@ -105,8 +105,9 @@ endif()
|
|||||||
|
|
||||||
target_include_directories(moonlight-common-c SYSTEM PUBLIC src)
|
target_include_directories(moonlight-common-c SYSTEM PUBLIC src)
|
||||||
|
|
||||||
target_include_directories(moonlight-common-c PRIVATE
|
target_include_directories(moonlight-common-c SYSTEM PRIVATE
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/nanors
|
${CMAKE_CURRENT_SOURCE_DIR}/nanors
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/nanors/deps
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/nanors/deps/obl
|
${CMAKE_CURRENT_SOURCE_DIR}/nanors/deps/obl
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,7 @@
|
|||||||
#define OBLAS_SSE3
|
#define OBLAS_SSE3
|
||||||
#else
|
#else
|
||||||
#if defined(__aarch64__) || (defined(_MSC_VER) && defined(_M_ARM64))
|
#if defined(__aarch64__) || (defined(_MSC_VER) && defined(_M_ARM64))
|
||||||
// To be replaced with SIMDe
|
#define OBLAS_NEON
|
||||||
// #define OBLAS_NEON
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -176,7 +176,8 @@ void obl_axpyb32_ref(u8 *a, u32 *b, u8 u, unsigned k)
|
|||||||
#else
|
#else
|
||||||
#if defined(OBLAS_SSE3) || defined(OBLAS_NEON)
|
#if defined(OBLAS_SSE3) || defined(OBLAS_NEON)
|
||||||
#if defined(OBLAS_NEON)
|
#if defined(OBLAS_NEON)
|
||||||
#include "sse2neon/sse2neon.h"
|
#define SIMDE_ENABLE_NATIVE_ALIASES
|
||||||
|
#include <simde/x86/ssse3.h>
|
||||||
#else
|
#else
|
||||||
#include <emmintrin.h>
|
#include <emmintrin.h>
|
||||||
#include <tmmintrin.h>
|
#include <tmmintrin.h>
|
||||||
|
|||||||
1
nanors/deps/simde
Submodule
1
nanors/deps/simde
Submodule
Submodule nanors/deps/simde added at 595b743dce
Reference in New Issue
Block a user