shithub: opus

Download patch

ref: 1c6c3d17a7d1868ef49834405f5f0ee9f59a5a00
parent: 2e78b27688a2ba0c2c8e367f8c6e2125371fce89
author: Jean-Marc Valin <[email protected]>
date: Mon Aug 15 05:43:52 EDT 2011

Removes unused functions from cwrs.c

--- a/libcelt/cwrs.c
+++ b/libcelt/cwrs.c
@@ -250,11 +250,6 @@
   }*/
 
 #ifndef SMALL_FOOTPRINT
-/*Compute V(1,_k).*/
-static inline unsigned ncwrs1(int _k){
-  return _k?2:1;
-}
-
 /*Compute U(2,_k).
   Note that this may be called with _k=32768 (maxK[2]+1).*/
 static inline unsigned ucwrs2(unsigned _k){
@@ -287,16 +282,6 @@
   return _k?((_k*(opus_uint32)_k+2)*_k)/3<<3:1;
 }
 
-/*Compute U(5,_k).*/
-static inline opus_uint32 ucwrs5(int _k){
-  return _k?(((((_k-2)*(unsigned)_k+5)*(opus_uint32)_k-4)*_k)/3<<1)+1:0;
-}
-
-/*Compute V(5,_k).*/
-static inline opus_uint32 ncwrs5(int _k){
-  return _k?(((_k*(unsigned)_k+5)*(opus_uint32)_k*_k)/3<<2)+2:1;
-}
-
 #endif /* SMALL_FOOTPRINT */
 
 /*Computes the next row/column of any recurrence that obeys the relation
@@ -544,20 +529,6 @@
   return i;
 }
 
-/*Returns the index of the given combination of K elements chosen from a set
-   of size 5 with associated sign bits.
-  _y: The vector of pulses, whose sum of absolute values is K.
-  _k: Returns K.*/
-static inline opus_uint32 icwrs5(const int *_y,int *_k){
-  opus_uint32 i;
-  int           k;
-  i=icwrs4(_y+1,&k);
-  i+=ucwrs5(k);
-  k+=abs(_y[0]);
-  if(_y[0]<0)i+=ucwrs5(k+1);
-  *_k=k;
-  return i;
-}
 #endif /* SMALL_FOOTPRINT */
 
 /*Returns the index of the given combination of K elements chosen from a set