shithub: opus

ref: 5c032a4cb4620d5a1dad7eadb5e3d90a962a5256
dir: /libcelt/bitrenc.c/

View raw version
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#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);
}