Skip to content

Commit

Permalink
Fixes clang build with SSE4 disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Vedenko committed Apr 8, 2020
1 parent 50a618d commit a6e5811
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions celt/celt.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,23 @@
#include "mips/celt_mipsr1.h"
#endif

#if defined(OPUS_HAVE_RTCD) && \
(defined(OPUS_ARM_ASM) || defined(OPUS_ARM_MAY_HAVE_NEON_INTR))

#elif (defined(OPUS_X86_MAY_HAVE_SSE) && !defined(OPUS_X86_PRESUME_SSE)) || \
(defined(OPUS_X86_MAY_HAVE_SSE2) && !defined(OPUS_X86_PRESUME_SSE2)) || \
(defined(OPUS_X86_MAY_HAVE_SSE4_1) && !defined(OPUS_X86_PRESUME_SSE4_1)) || \
(defined(OPUS_X86_MAY_HAVE_AVX) && !defined(OPUS_X86_PRESUME_AVX))

#else
#include "cpu_support.h"

int opus_select_arch(void)
{
return 0;
}
#endif


int resampling_factor(opus_int32 rate)
{
Expand Down

0 comments on commit a6e5811

Please sign in to comment.