[CMake,simd] unify WITH_SSE2, WITH_AVX2, WITH_NEON

* Add new CMake option WITH_SIMD to enable best available instruction
  type
* Unify simd related defines in single header
This commit is contained in:
akallabeth
2024-11-27 11:29:48 +01:00
parent 4b35fe8cfa
commit b4976163cd
39 changed files with 399 additions and 387 deletions

View File

@@ -409,10 +409,6 @@ endif(APPLE)
if(ANDROID)
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS ${ANDROID_LIBRARY_USE_LIB64_PATHS})
if(${ANDROID_ABI} STREQUAL "armeabi")
set(WITH_NEON OFF)
endif()
if(ANDROID_ABI STREQUAL arm64-v8a)
include(CheckCCompilerFlag)
check_c_compiler_flag("-mfloat-abi=softfp" ABI_SOFTFP_SUPPORTED)