Skip to content

Commit

Permalink
[opus] Exclude AVX2 sources unless necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
starg2 committed Mar 16, 2024
1 parent e2f9bf5 commit 3bb6b1f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions opus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,7 @@ add_library(
silk/float/structs_FLP.h
silk/float/warped_autocorrelation_FLP.c
silk/float/wrappers_FLP.c
silk/float/x86/inner_product_FLP_avx2.c
silk/x86/main_sse.h
silk/x86/NSQ_del_dec_avx2.c
silk/x86/NSQ_del_dec_sse4_1.c
silk/x86/NSQ_sse4_1.c
silk/x86/SigProc_FIX_sse.h
Expand All @@ -259,4 +257,13 @@ add_library(
silk/x86/x86_silk_map.c
)

if("${TIM41_X86_SIMD_LEVEL}" MATCHES "^(AVX2|AVX512)$" OR MSVC)
target_sources(
opus
PRIVATE
silk/float/x86/inner_product_FLP_avx2.c
silk/x86/NSQ_del_dec_avx2.c
)
endif()

install(TARGETS opus)

0 comments on commit 3bb6b1f

Please sign in to comment.