33 #if !defined(_ecintrin_H) 34 # define _ecintrin_H (1) 46 # define EC_MINI(_a,_b) ((_a)+(((_b)-(_a))&-((_b)<(_a)))) 51 #if defined(_MSC_VER) && (_MSC_VER >= 1400) 54 # pragma intrinsic(_BitScanReverse) 56 static __inline
int ec_bsr(
unsigned long _x){
58 _BitScanReverse(&ret,_x);
62 # define EC_CLZ(_x) (-ec_bsr(_x)) 63 #elif defined(ENABLE_TI_DSPLIB) 66 # define EC_CLZ(_x) (_lnorm(_x)) 67 #elif __GNUC_PREREQ(3,4) 68 # if INT_MAX>=2147483647 69 # define EC_CLZ0 ((int)sizeof(unsigned)*CHAR_BIT) 70 # define EC_CLZ(_x) (__builtin_clz(_x)) 71 # elif LONG_MAX>=2147483647L 72 # define EC_CLZ0 ((int)sizeof(unsigned long)*CHAR_BIT) 73 # define EC_CLZ(_x) (__builtin_clzl(_x)) 82 # define EC_ILOG(_x) (EC_CLZ0-EC_CLZ(_x)) 85 # define EC_ILOG(_x) (ec_ilog(_x)) Opus reference implementation types.
int ec_ilog(opus_uint32 _v)
Definition: entcode.c:41
int ret
Definition: test_unit_dft.c:69
unsigned int opus_uint32
Definition: opus_types.h:147
Various architecture definitions for CELT.