301 |
static uint32_t __inline |
static uint32_t __inline |
302 |
BitstreamPos(const Bitstream * const bs) |
BitstreamPos(const Bitstream * const bs) |
303 |
{ |
{ |
304 |
return 8 * ((ptr_t)bs->tail - (ptr_t)bs->start) + bs->pos; |
return((uint32_t)(8*((ptr_t)bs->tail - (ptr_t)bs->start) + bs->pos)); |
305 |
} |
} |
306 |
|
|
307 |
|
|
312 |
static uint32_t __inline |
static uint32_t __inline |
313 |
BitstreamLength(Bitstream * const bs) |
BitstreamLength(Bitstream * const bs) |
314 |
{ |
{ |
315 |
uint32_t len = (ptr_t) bs->tail - (ptr_t) bs->start; |
uint32_t len = (uint32_t)((ptr_t)bs->tail - (ptr_t)bs->start); |
316 |
|
|
317 |
if (bs->pos) { |
if (bs->pos) { |
318 |
uint32_t b = bs->buf; |
uint32_t b = bs->buf; |