cocos2d/external/android-specific/tremolo/Tremolo/bitwise.c
void oggpack_adv(oggpack_buffer *b,int bits){
    int BITS=bits;
  bits+=b->headbit;
  b->headbit=bits&7;
  b->headend-=(bits>>3);
  b->headptr+=(bits>>3);
  if(b->headend<1)_span(b);
  //fprintf(stderr, "Adv: buffer=(%d,%x,%d,%d) %02x%02x%02x%02x%02x%02x%02x%02x (%d bits)\n",
  //        b->headbit, b->headptr, b->headend,b->count,
  //        b->headptr[7], b->headptr[6], b->headptr[5], b->headptr[4],
  //        b->headptr[3], b->headptr[2], b->headptr[1], b->headptr[0],
  //        BITS);
  //fflush(stderr);
}
/* limited to 32 at a time */
limited to 32 at a time
limited to 32 at a time
void oggpack_adv(oggpack_buffer *b,int bits){
    int BITS=bits;
  bits+=b->headbit;
  b->headbit=bits&7;
  b->headend-=(bits>>3);
  b->headptr+=(bits>>3);
  if(b->headend<1)_span(b);
}
void oggpack_adv ( oggpack_buffer * b , int bits ) { int BITS = bits ; bits += b -> headbit ; b -> headbit = bits & 7 ; b -> headend -= ( bits >> 3 ) ; b -> headptr += ( bits >> 3 ) ; if ( b -> headend < 1 ) _span ( b ) ; }
limited to 32 at a time
limited to 32 at a time
//fprintf(stderr, "Adv: buffer=(%d,%x,%d,%d) %02x%02x%02x%02x%02x%02x%02x%02x (%d bits)\n", //        b->headbit, b->headptr, b->headend,b->count, //        b->headptr[7], b->headptr[6], b->headptr[5], b->headptr[4], //        b->headptr[3], b->headptr[2], b->headptr[1], b->headptr[0], //        BITS); //fflush(stderr);