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

github.com/mumble-voip/celt-0.7.0.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>2009-10-31 20:43:43 +0300
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2009-10-31 20:43:43 +0300
commit5ed24f8155adf59a4134c92383c19dc3cae68033 (patch)
tree57fecce0827de88e08e0c19c1cc8cdb0e6cefde8
parent8c7bb4c9c7e2cb529a58e5dcdd8ce324081347c9 (diff)
celt_ilog2() is only used in fixed-point mode
-rw-r--r--libcelt/mathops.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/libcelt/mathops.h b/libcelt/mathops.h
index 59d5045..9dad752 100644
--- a/libcelt/mathops.h
+++ b/libcelt/mathops.h
@@ -42,15 +42,6 @@
#include "entcode.h"
#include "os_support.h"
-#ifndef OVERRIDE_CELT_ILOG2
-/** Integer log in base2. Undefined for zero and negative numbers */
-static inline celt_int16 celt_ilog2(celt_word32 x)
-{
- celt_assert2(x>0, "celt_ilog2() only defined for strictly positive numbers");
- return EC_ILOG(x)-1;
-}
-#endif
-
#ifndef OVERRIDE_FIND_MAX16
static inline int find_max16(celt_word16 *x, int len)
{
@@ -170,6 +161,16 @@ static inline float celt_exp2(float x)
#include "os_support.h"
+#ifndef OVERRIDE_CELT_ILOG2
+/** Integer log in base2. Undefined for zero and negative numbers */
+static inline celt_int16 celt_ilog2(celt_int32 x)
+{
+ celt_assert2(x>0, "celt_ilog2() only defined for strictly positive numbers");
+ return EC_ILOG(x)-1;
+}
+#endif
+
+
#ifndef OVERRIDE_CELT_MAXABS16
static inline celt_word16 celt_maxabs16(celt_word16 *x, int len)
{