opus/libcelt/bitrenc.c
Jean-Marc Valin 6238bc0ece Moved the content of libentcode into libcelt to reduce dependencies,
especially now that we have a custom version of that code anyway. Moved
the test code to tests/
2008-01-28 22:28:54 +11:00

9 lines
170 B
C

#include "bitrenc.h"
void ec_bitree_update(unsigned *_this,int _sz,int _sym,int _val){
do{
_this[_sym]+=_val;
_sym+=_sym+1&-(_sym+1);
}
while(_sym<_sz);
}