shithub: opus

ref: e38c7c18f77ba03e4f3c18c6de5cc4cbb17dcdf3
dir: /libentcode/bitrenc.c/

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