Beispiel #1
0
#include "celt_lpc.h"
#include "pitch.h"
#include "pitch_sse.h"

void (*const CELT_FIR_IMPL[ OPUS_ARCHMASK + 1 ] )(
         const opus_val16 *x,
         const opus_val16 *num,
         opus_val16       *y,
         int              N,
         int              ord,
         opus_val16       *mem,
         const int        arch
) = {
  celt_fir_c,                /* non-sse */
  celt_fir_c, 
  MAY_HAVE_SSE4_1( celt_fir ), /* sse4.1  */
  NULL
};

void (*const XCORR_KERNEL_IMPL[ OPUS_ARCHMASK + 1 ] )(
         const opus_val16 *x,
         const opus_val16 *y,
         opus_val32       sum[ 4 ],
         int              len
) = {
  xcorr_kernel_c,                /* non-sse */
  xcorr_kernel_c,
  MAY_HAVE_SSE4_1( xcorr_kernel ), /* sse4.1  */
  NULL
};
Beispiel #2
0
#if !defined(OPUS_X86_PRESUME_SSE4_1)

#if defined(FIXED_POINT)

#include "fixed/main_FIX.h"

opus_int64 (*const SILK_INNER_PROD16_ALIGNED_64_IMPL[ OPUS_ARCHMASK + 1 ] )(
    const opus_int16 *inVec1,
    const opus_int16 *inVec2,
    const opus_int   len
) = {
  silk_inner_prod16_aligned_64_c,                  /* non-sse */
  silk_inner_prod16_aligned_64_c,
  silk_inner_prod16_aligned_64_c,
  MAY_HAVE_SSE4_1( silk_inner_prod16_aligned_64 ), /* sse4.1 */
};

#endif

opus_int (*const SILK_VAD_GETSA_Q8_IMPL[ OPUS_ARCHMASK + 1 ] )(
    silk_encoder_state *psEncC,
    const opus_int16   pIn[]
) = {
  silk_VAD_GetSA_Q8_c,                  /* non-sse */
  silk_VAD_GetSA_Q8_c,
  silk_VAD_GetSA_Q8_c,
  MAY_HAVE_SSE4_1( silk_VAD_GetSA_Q8 ), /* sse4.1 */
};

void (*const SILK_NSQ_IMPL[ OPUS_ARCHMASK + 1 ] )(