Implemented a cleaner way to detect whether CWRS codebooks fit in 32 or 64 bits

This commit is contained in:
Jean-Marc Valin 2008-06-10 16:25:45 +10:00
parent 7806230829
commit 5aff7c04d4
4 changed files with 53 additions and 8 deletions

View file

@ -36,6 +36,11 @@
#include "entenc.h"
#include "entdec.h"
/* Whether the CWRS codebook will fit into 32 bits */
int fits_in32(int _n, int _m);
/* Whether the CWRS codebook will fit into 64 bits */
int fits_in64(int _n, int _m);
/* 32-bit versions */
celt_uint32_t ncwrs_u32(int _n,int _m,celt_uint32_t *_u);