Ignore:
Timestamp:
2007-01-17T11:56:49+13:00 (17 years ago)
Author:
kjdon
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/packages/mg/lib/bitio_m.h

    r13654 r13658  
    5757  register int _B_x  = (x) - 1;                     \
    5858  (v) = 0;                              \
    59   for (; _B_x ; _B_x>>=1, (v)++);                   \
     59  for (; _B_x ; _B_x>>=1, ++(v));                   \
    6060} while(0)
    6161
     
    6565  register int _B_x  = (x);                     \
    6666  (v) = -1;                             \
    67   for (; _B_x ; _B_x>>=1, (v)++);                   \
     67  for (; _B_x ; _B_x>>=1, ++(v));                   \
    6868} while(0)
    6969
     
    9898  BIO_DECODE_PROLOGUE;                          \
    9999  (x) = 1;                              \
    100   while (!DECODE_BIT) (x)++;                        \
     100  while (!DECODE_BIT) ++(x);                        \
    101101  BIO_DECODE_EPILOGUE;                          \
    102102} while(0)
     
    106106  BIO_DECODE_PROLOGUE;                          \
    107107  (x) = 1;                              \
    108   while (!DECODE_BIT) (x)++;                        \
     108  while (!DECODE_BIT) ++(x);                        \
    109109  (count) += (x);                           \
    110110  BIO_DECODE_EPILOGUE;                          \
     
    176176      CEILLOG_2(_B_b, _B_logofb);                   \
    177177      _B_thresh = (1<<_B_logofb) - _B_b;                \
    178       _B_logofb--;                          \
    179       for (_B_i=0; _B_i < _B_logofb; _B_i++)                \
     178      --_B_logofb;                          \
     179      for (_B_i=0; _B_i < _B_logofb; ++_B_i)                \
    180180        DECODE_ADD(_B_x);                       \
    181181      if (_B_x >= _B_thresh)                        \
     
    201201      CEILLOG_2(_B_b, _B_logofb);                   \
    202202      _B_thresh = (1<<_B_logofb) - _B_b;                \
    203       _B_logofb--;                          \
     203      --_B_logofb;                          \
    204204      (count) += _B_logofb;                         \
    205       for (_B_i=0; _B_i < _B_logofb; _B_i++)                \
     205      for (_B_i=0; _B_i < _B_logofb; ++_B_i)                \
    206206        DECODE_ADD(_B_x);                       \
    207207      if (_B_x >= _B_thresh)                        \
     
    209209          DECODE_ADD(_B_x);                     \
    210210          _B_x -= _B_thresh;                        \
    211           (count)++;                            \
     211          ++(count);                            \
    212212    }                               \
    213213      (x) = _B_x+1;                         \
     
    274274  register int _B_nbits = 0;                        \
    275275  BIO_DECODE_PROLOGUE;                          \
    276   while(!DECODE_BIT) _B_nbits++;                    \
     276  while(!DECODE_BIT) ++_B_nbits;                    \
    277277  while (_B_nbits-- > 0)                        \
    278278    DECODE_ADD(_B_xx);                          \
     
    286286  register int _B_nbits = 0;                        \
    287287  BIO_DECODE_PROLOGUE;                          \
    288   while(!DECODE_BIT) _B_nbits++;                    \
     288  while(!DECODE_BIT) ++_B_nbits;                    \
    289289  (count) += _B_nbits*2+1;                      \
    290290  while (_B_nbits-- > 0)                        \
     
    331331  register unsigned long _B_xxx;                    \
    332332  register int _B_logx;                         \
    333   GAMMA_DECODE(_B_logx); _B_logx--;                 \
    334   BINARY_DECODE(_B_xxx, 1<<_B_logx); _B_xxx--;              \
     333  GAMMA_DECODE(_B_logx); --_B_logx;                 \
     334  BINARY_DECODE(_B_xxx, 1<<_B_logx); --_B_xxx;              \
    335335  (x) = _B_xxx + (1<<_B_logx);                      \
    336336} while (0)
     
    340340  register unsigned long _B_xxx;                    \
    341341  register int _B_logx;                         \
    342   GAMMA_DECODE_L(_B_logx, count); _B_logx--;                \
    343   BINARY_DECODE_L(_B_xxx, 1<<_B_logx, count); _B_xxx--;         \
     342  GAMMA_DECODE_L(_B_logx, count); --_B_logx;                \
     343  BINARY_DECODE_L(_B_xxx, 1<<_B_logx, count); --_B_xxx;         \
    344344  (x) = _B_xxx + (1<<_B_logx);                      \
    345345} while (0)
     
    372372  while (_B_xx>_B_upper)                        \
    373373    {                                   \
    374       _B_k++;                               \
     374      ++_B_k;                               \
    375375      _B_lower = _B_upper+1;                        \
    376376      _B_pow *= _B_s;                           \
     
    392392  while (_B_xx>_B_upper)                        \
    393393    {                                   \
    394       _B_k++;                               \
     394      ++_B_k;                               \
    395395      _B_lower = _B_upper+1;                        \
    396396      _B_pow *= _B_s;                           \
     
    409409  register int _B_k;                            \
    410410  register double _B_pow=1.0;                       \
    411   UNARY_DECODE(_B_k); _B_k--;                       \
     411  UNARY_DECODE(_B_k); --_B_k;                       \
    412412  while (_B_k--)                            \
    413413    {                                   \
     
    416416      _B_upper += _B_b*_B_pow;                      \
    417417    }                                   \
    418   BINARY_DECODE(_B_xx, _B_upper-_B_lower+1); _B_xx--;           \
     418  BINARY_DECODE(_B_xx, _B_upper-_B_lower+1); --_B_xx;           \
    419419  POSITIVE(gamma, _B_xx+_B_lower);                  \
    420420  (x) = _B_xx+_B_lower;                         \
     
    429429  register int _B_k;                            \
    430430  register double _B_pow=1.0;                       \
    431   UNARY_DECODE_L(_B_k, count); _B_k--;                  \
     431  UNARY_DECODE_L(_B_k, count); --_B_k;                  \
    432432  while (_B_k--)                            \
    433433    {                                   \
     
    436436      _B_upper += _B_b*_B_pow;                      \
    437437    }                                   \
    438   BINARY_DECODE_L(_B_xx, _B_upper-_B_lower+1, count); _B_xx--;      \
     438  BINARY_DECODE_L(_B_xx, _B_upper-_B_lower+1, count); --_B_xx;      \
    439439  POSITIVE(gamma, _B_xx+_B_lower);                  \
    440440  (x) = _B_xx+_B_lower;                         \
     
    452452  while (_B_xx>_B_upper)                        \
    453453    {                                   \
    454       _B_k++;                               \
     454      ++_B_k;                               \
    455455      _B_lower = _B_upper+1;                        \
    456456      _B_pow *= _B_s;                           \
     
    472472  register int _B_xdivb = 0;                        \
    473473  POSITIVE(bblock, _B_xx);                      \
    474   _B_xx--;                              \
     474  --_B_xx;                              \
    475475  while (_B_xx >= _B_bb)                        \
    476476    {                                   \
    477       _B_xdivb++;                           \
     477      ++_B_xdivb;                           \
    478478      _B_xx -= _B_bb;                           \
    479479    }                                   \
     
    488488  register int _B_xdivb = 0;                        \
    489489  POSITIVE(bblock, _B_xx);                      \
    490   _B_xx--;                              \
     490  --_B_xx;                              \
    491491  while (_B_xx >= _B_bb)                        \
    492492    {                                   \
    493       _B_xdivb++;                           \
     493      ++_B_xdivb;                           \
    494494      _B_xx -= _B_bb;                           \
    495495    }                                   \
     
    503503  register unsigned long _B_bb = (b);                   \
    504504  register int _B_xdivb;                        \
    505   UNARY_DECODE(_B_xdivb); _B_xdivb--;                   \
     505  UNARY_DECODE(_B_xdivb); --_B_xdivb;                   \
    506506  while (_B_xdivb--)                            \
    507507    _B_xx += _B_bb;                         \
     
    515515  register unsigned long _B_bb = (b);                   \
    516516  register int _B_xdivb;                        \
    517   UNARY_DECODE_L(_B_xdivb, count); _B_xdivb--;              \
     517  UNARY_DECODE_L(_B_xdivb, count); --_B_xdivb;              \
    518518  while (_B_xdivb--)                            \
    519519    _B_xx += _B_bb;                         \
     
    528528  register int _B_xdivb = 0;                        \
    529529  POSITIVE(bblock, _B_xx);                      \
    530   _B_xx--;                              \
     530  --_B_xx;                              \
    531531  while (_B_xx >= _B_bb)                        \
    532532    {                                   \
    533       _B_xdivb++;                           \
     533      ++_B_xdivb;                           \
    534534      _B_xx -= _B_bb;                           \
    535535    }                                   \
Note: See TracChangeset for help on using the changeset viewer.