39 #if OPUS_GNUC_PREREQ(3, 0) 40 #define opus_likely(x) (__builtin_expect(!!(x), 1)) 41 #define opus_unlikely(x) (__builtin_expect(!!(x), 0)) 43 #define opus_likely(x) (!!(x)) 44 #define opus_unlikely(x) (!!(x)) 51 #define silk_SMULWB(a32, b32) ((opus_int32)(((a32) * (opus_int64)((opus_int16)(b32))) >> 16)) 53 #define silk_SMULWB(a32, b32) ((((a32) >> 16) * (opus_int32)((opus_int16)(b32))) + ((((a32) & 0x0000FFFF) * (opus_int32)((opus_int16)(b32))) >> 16)) 58 #define silk_SMLAWB(a32, b32, c32) ((opus_int32)((a32) + (((b32) * (opus_int64)((opus_int16)(c32))) >> 16))) 60 #define silk_SMLAWB(a32, b32, c32) ((a32) + ((((b32) >> 16) * (opus_int32)((opus_int16)(c32))) + ((((b32) & 0x0000FFFF) * (opus_int32)((opus_int16)(c32))) >> 16))) 65 #define silk_SMULWT(a32, b32) ((opus_int32)(((a32) * (opus_int64)((b32) >> 16)) >> 16)) 67 #define silk_SMULWT(a32, b32) (((a32) >> 16) * ((b32) >> 16) + ((((a32) & 0x0000FFFF) * ((b32) >> 16)) >> 16)) 72 #define silk_SMLAWT(a32, b32, c32) ((opus_int32)((a32) + (((b32) * ((opus_int64)(c32) >> 16)) >> 16))) 74 #define silk_SMLAWT(a32, b32, c32) ((a32) + (((b32) >> 16) * ((c32) >> 16)) + ((((b32) & 0x0000FFFF) * ((c32) >> 16)) >> 16)) 78 #define silk_SMULBB(a32, b32) ((opus_int32)((opus_int16)(a32)) * (opus_int32)((opus_int16)(b32))) 81 #define silk_SMLABB(a32, b32, c32) ((a32) + ((opus_int32)((opus_int16)(b32))) * (opus_int32)((opus_int16)(c32))) 84 #define silk_SMULBT(a32, b32) ((opus_int32)((opus_int16)(a32)) * ((b32) >> 16)) 87 #define silk_SMLABT(a32, b32, c32) ((a32) + ((opus_int32)((opus_int16)(b32))) * ((c32) >> 16)) 90 #define silk_SMLAL(a64, b32, c32) (silk_ADD64((a64), ((opus_int64)(b32) * (opus_int64)(c32)))) 94 #define silk_SMULWW(a32, b32) ((opus_int32)(((opus_int64)(a32) * (b32)) >> 16)) 96 #define silk_SMULWW(a32, b32) silk_MLA(silk_SMULWB((a32), (b32)), (a32), silk_RSHIFT_ROUND((b32), 16)) 101 #define silk_SMLAWW(a32, b32, c32) ((opus_int32)((a32) + (((opus_int64)(b32) * (c32)) >> 16))) 103 #define silk_SMLAWW(a32, b32, c32) silk_MLA(silk_SMLAWB((a32), (b32), (c32)), (b32), silk_RSHIFT_ROUND((c32), 16)) 107 #define silk_ADD_SAT32(a, b) ((((opus_uint32)(a) + (opus_uint32)(b)) & 0x80000000) == 0 ? \ 108 ((((a) & (b)) & 0x80000000) != 0 ? silk_int32_MIN : (a)+(b)) : \ 109 ((((a) | (b)) & 0x80000000) == 0 ? silk_int32_MAX : (a)+(b)) ) 111 #define silk_SUB_SAT32(a, b) ((((opus_uint32)(a)-(opus_uint32)(b)) & 0x80000000) == 0 ? \ 112 (( (a) & ((b)^0x80000000) & 0x80000000) ? silk_int32_MIN : (a)-(b)) : \ 113 ((((a)^0x80000000) & (b) & 0x80000000) ? silk_int32_MAX : (a)-(b)) ) 115 #if defined(MIPSr1_ASM) 120 #ifndef OVERRIDE_silk_CLZ16 123 return 32 -
EC_ILOG(in16<<16|0x8000);
127 #ifndef OVERRIDE_silk_CLZ32 130 return in32 ? 32 -
EC_ILOG(in32) : 32;
135 #define matrix_ptr(Matrix_base_adr, row, column, N) \ 136 (*((Matrix_base_adr) + ((row)*(N)+(column)))) 137 #define matrix_adr(Matrix_base_adr, row, column, N) \ 138 ((Matrix_base_adr) + ((row)*(N)+(column))) 142 # define matrix_c_ptr(Matrix_base_adr, row, column, M) \ 143 (*((Matrix_base_adr) + ((row)+(M)*(column)))) 146 #ifdef OPUS_ARM_INLINE_ASM 150 #ifdef OPUS_ARM_INLINE_EDSP 154 #ifdef OPUS_ARM_PRESUME_AARCH64_NEON_INTR Opus reference implementation types.
short opus_int16
Definition: opus_types.h:144
#define silk_CLZ16(in16)
Definition: macros_armv5e.h:197
Opus reference implementation constants.
#define EC_ILOG(_x)
Definition: ecintrin.h:85
int opus_int32
Definition: opus_types.h:146
Various architecture definitions for CELT.
#define silk_CLZ32(in32)
Definition: macros_armv5e.h:211