Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/celt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2008-03-21 02:40:43 +0300
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2008-03-21 02:40:43 +0300
commit83006eec60ee90fe85081c8d7edcfe16aa5db50e (patch)
tree0e0637b847df8efb7336af9db500de11b5ae02d1 /libcelt/fixed_c5x.h
parent983f6387e05311b59b60467353d0794e1a5be2f3 (diff)
fixed-point: using TI intrinsic for celt_ilog2() if available.
Diffstat (limited to 'libcelt/fixed_c5x.h')
-rw-r--r--libcelt/fixed_c5x.h3
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 */