search for: ec_uint32

Displaying 2 results from an estimated 2 matches for "ec_uint32".

2011 Mar 03
0
[PATCH] Eliminate the ec_int32 and ec_uint32 typedefs.
...#39;s no real reason to maintain the typedefs separately. Hopefully we'll replace these all again somedate with a common set of Opus typedefs, but for now this will do. This fixes an issue caused by commit 6c8acbf1, which moved the ec_ilog() prototype from entcode.h to ecintrin.h, where the ec_uint32 typedef was not yet available. Thanks to John Ridges for the report. --- libcelt/bands.c | 2 +- libcelt/bands.h | 2 +- libcelt/celt.c | 12 ++++++------ libcelt/cwrs.c | 2 +- libcelt/cwrs.h | 2 +- libcelt/ecintrin.h | 3 ++- libcelt/entcode....
2008 Dec 21
0
[PATCH] Fix ectest to not check a case which isn't guaranteed to work, and which we don't use.
....284ce39 100644 --- a/libcelt/entdec.c +++ b/libcelt/entdec.c @@ -5,6 +5,7 @@ #include <stddef.h> #include "entdec.h" #include "os_support.h" +#include "arch.h" void ec_byte_readinit(ec_byte_buffer *_b,unsigned char *_buf,long _bytes){ @@ -106,6 +107,8 @@ ec_uint32 ec_dec_uint(ec_dec *_this,ec_uint32 _ft){ unsigned s; int ftb; t=0; + /*In order to optimize EC_ILOG(), it is undefined for the value 0.*/ + celt_assert(_ft>1); _ft--; ftb=EC_ILOG(_ft); if(ftb>EC_UNIT_BITS){ diff --git a/libcelt/entenc.c b/libcelt/entenc.c index 3da...