diff options
author | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2008-03-21 02:40:43 +0300 |
---|---|---|
committer | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2008-03-21 02:40:43 +0300 |
commit | 83006eec60ee90fe85081c8d7edcfe16aa5db50e (patch) | |
tree | 0e0637b847df8efb7336af9db500de11b5ae02d1 /libcelt/fixed_c5x.h | |
parent | 983f6387e05311b59b60467353d0794e1a5be2f3 (diff) |
fixed-point: using TI intrinsic for celt_ilog2() if available.
Diffstat (limited to 'libcelt/fixed_c5x.h')
-rw-r--r-- | libcelt/fixed_c5x.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcelt/fixed_c5x.h b/libcelt/fixed_c5x.h index 80efd9b..53c16c5 100644 --- a/libcelt/fixed_c5x.h +++ b/libcelt/fixed_c5x.h @@ -59,4 +59,7 @@ #undef MULT_16_16 #define MULT_16_16(a,b) _lmpy(a,b) +#define celt_ilog2(x) (30 - _lnorm(x)) +#define OVERRIDE_CELT_ILOG2 + #endif /* FIXED_C5X_H */ |