Lines Matching refs:dbit

244 static int inline sample_store_next8(uint value, byte **dptr, int *dbit, int dbpv, byte *dbbyte)  in sample_store_next8()  argument
248 if ( (*dbit += dbpv) == 8 ) { in sample_store_next8()
251 *dbit = 0; in sample_store_next8()
254 *dbbyte |= (byte)(value << (8 - *dbit)); in sample_store_next8()
257 if ( *dbit ^= 4 ) in sample_store_next8()
271 static void inline sample_store_next_12 (uint value, byte **dptr, int *dbit, byte *dbbyte) in sample_store_next_12() argument
273 if ( *dbit ^= 4 ) in sample_store_next_12()
278 static int inline sample_store_next12(uint value, byte **dptr, int *dbit, int dbpv, byte *dbbyte) in sample_store_next12() argument
282 if ((*dbit += dbpv) == 8 ) in sample_store_next12()
283 *(*dptr)++ = *dbbyte | (byte)value, *dbbyte = 0, *dbit = 0; in sample_store_next12()
285 *dbbyte |= (byte)(value << (8 - *dbit)); in sample_store_next12()
288 if ( *dbit ^= 4 ) in sample_store_next12()
294 if ( *dbit ^= 4 ) in sample_store_next12()
308 static int inline sample_store_next16(uint value, byte **dptr, int *dbit, int dbpv, byte *dbbyte) in sample_store_next16() argument
312 if ( (*dbit += dbpv) == 8 ) in sample_store_next16()
313 *(*dptr)++ = *dbbyte | (byte)value, *dbbyte = 0, *dbit = 0; in sample_store_next16()
315 *dbbyte |= (byte)(value << (8 - *dbit)); in sample_store_next16()
318 if ( *dbit ^= 4 ) in sample_store_next16()
324 if ( *dbit ^= 4 ) in sample_store_next16()
341 static int inline sample_store_next32(uint32_t value, byte **dptr, int *dbit, int dbpv, byte *dbbyt… in sample_store_next32() argument
345 if ( (*dbit += dbpv) == 8 ) in sample_store_next32()
346 *(*dptr)++ = *dbbyte | (byte)value, *dbbyte = 0, *dbit = 0;\ in sample_store_next32()
348 *dbbyte |= (byte)(value << (8 - *dbit)); in sample_store_next32()
351 if ( *dbit ^= 4 ) in sample_store_next32()
357 if ( *dbit ^= 4 ) in sample_store_next32()
376 static int inline sample_store_next64(uint64_t value, byte **dptr, int *dbit, int dbpv, byte *dbbyt… in sample_store_next64() argument
380 if ( (*dbit += dbpv) == 8 ) in sample_store_next64()
381 *(*dptr)++ = *dbbyte | (byte)value, *dbbyte = 0, *dbit = 0; in sample_store_next64()
382 else *dbbyte |= (byte)(value << (8 - *dbit)); in sample_store_next64()
385 if ( *dbit ^= 4 ) *dbbyte = (byte)(value << 4); in sample_store_next64()
389 if ( *dbit ^= 4 ) *(*dptr)++ = (byte)(value >> 4), *dbbyte = (byte)(value << 4); in sample_store_next64()
408 static void inline sample_store_flush(byte *dptr, int dbit, byte dbbyte) in sample_store_flush() argument
410 if (dbit != 0 )\ in sample_store_flush()
411 *dptr = dbbyte | (*dptr & (0xff >> dbit)); in sample_store_flush()
414 static void inline sample_store_skip_next(byte **dptr, int *dbit, int dbpv, byte *dbbyte) in sample_store_skip_next() argument
417 sample_store_flush(*dptr, *dbit, *dbbyte); in sample_store_skip_next()
418 *dbit += dbpv; in sample_store_skip_next()
419 *dptr += (*dbit) >> 3; in sample_store_skip_next()
420 *dbit &= 7; in sample_store_skip_next()
421 *dbbyte &= ~(0xff << (*dbit)); in sample_store_skip_next()