Ignore:
Timestamp:
2005-04-08T15:41:31+12:00 (19 years ago)
Author:
kjdon
Message:

added in x++ -> ++x changes submitted by Emanuel Dejanu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mgpp/lib/bitio_m_abstract.h

    r3365 r9612  
    2222    while (_B_x != 0) {
    2323      _B_x >>= 1;
    24       reply ++;
     24      ++reply;
    2525    }
    2626    return reply;
     
    3535    while (_B_x != 0) {
    3636      _B_x >>= 1;
    37       reply ++;
     37      ++reply;
    3838    }
    3939    return reply;
     
    4444   
    4545    x = 1;
    46     while (!this->bit()) x++;
     46    while (!this->bit()) ++x;
    4747    if (count != NULL) {
    4848      *count += x;
     
    7272      _B_logofb = ceil_log2(_B_b);
    7373      _B_thresh = (1<<_B_logofb) - _B_b;
    74       _B_logofb--;
     74      --_B_logofb;
    7575     
    7676      if (count != NULL) {
     
    7878      }
    7979     
    80       for (_B_i=0; _B_i < _B_logofb; _B_i++) {
     80      for (_B_i=0; _B_i < _B_logofb; ++_B_i) {
    8181    _B_x += _B_x + this->bit();
    8282      }
     
    123123   
    124124    _B_xdivb = this->unary_decode(count);
    125     _B_xdivb--;                   
     125    --_B_xdivb;                   
    126126    while (_B_xdivb--) {
    127127      _B_xx += _B_bb;
     
    136136    register int _B_xdivb = 0;
    137137    check_positive("bblock", _B_xx);
    138     _B_xx--;
     138    --_B_xx;
    139139    while (_B_xx >= _B_bb) {
    140       _B_xdivb++;
     140      ++_B_xdivb;
    141141      _B_xx -= _B_bb;
    142142    }
     
    154154   
    155155    _B_k = this->unary_decode(count);
    156     _B_k--;
     156    --_B_k;
    157157    while (_B_k--) {
    158158      _B_lower = _B_upper+1;
     
    161161    }
    162162    _B_xx = this->binary_decode(_B_upper-_B_lower+1, count);
    163     _B_xx--;
     163    --_B_xx;
    164164    check_positive("gamma", _B_xx+_B_lower);
    165165    return _B_xx+_B_lower;
     
    177177   
    178178    while ((int)_B_xx>_B_upper) {
    179       _B_k++;
     179      ++_B_k;
    180180      _B_lower = _B_upper+1;
    181181      _B_pow *= _B_s;
     
    190190    register int _B_nbits = 0;
    191191   
    192     while(!this->bit()) _B_nbits++;
     192    while(!this->bit()) ++_B_nbits;
    193193    if (count != NULL) {
    194194      *count += _B_nbits*2+1;
     
    219219    register int _B_logx;
    220220    _B_logx = gamma_decode(count);
    221     _B_logx--;
     221    --_B_logx;
    222222    _B_xxx = binary_decode(1<<_B_logx, count);
    223     _B_xxx--;
     223    --_B_xxx;
    224224    return (_B_xxx + (1<<_B_logx));
    225225  }
     
    241241    do {
    242242      __code += __code + bit();
    243       if (count != NULL) (*count) ++;
     243      if (count != NULL) ++(*count);
    244244    } while (__code < *++__mclen);
    245245   
     
    252252    register int __clen = lens[x];
    253253    register unsigned long __code = codes[x];
    254     for (__i=__clen-1; __i>=0; __i--) {
     254    for (__i=__clen-1; __i>=0; --__i) {
    255255      encodeBit((__code >> __i) & 1);
    256256    }
     
    284284   
    285285    check_positive("bblock", _B_xx);
    286     _B_xx--;
     286    --_B_xx;
    287287    while (_B_xx >= _B_bb) {
    288       _B_xdivb++;
     288      ++_B_xdivb;
    289289      _B_xx -= _B_bb;
    290290    }
     
    307307   
    308308    while ((int)(_B_xx)>_B_upper) {
    309       _B_k++;
     309      ++_B_k;
    310310      _B_lower = _B_upper+1;
    311311      _B_pow *= _B_s;
Note: See TracChangeset for help on using the changeset viewer.