summaryrefslogtreecommitdiff
path: root/cesar/lib/src
diff options
context:
space:
mode:
authorNélio Laranjeiro2010-11-09 09:18:54 +0100
committerNélio Laranjeiro2010-11-12 13:45:36 +0100
commit70f09bc042bd437820da602848da187782e31273 (patch)
tree85c8e1b32a01e5174547029d61fb9461680444f2 /cesar/lib/src
parent19904c5923b93a61e5012eebaf2d065050d41d52 (diff)
cesar/lib: add blame instruction for bitstream
Diffstat (limited to 'cesar/lib/src')
-rw-r--r--cesar/lib/src/bitstream.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cesar/lib/src/bitstream.c b/cesar/lib/src/bitstream.c
index e382c42421..3eb7bec026 100644
--- a/cesar/lib/src/bitstream.c
+++ b/cesar/lib/src/bitstream.c
@@ -201,11 +201,11 @@ bitstream_set_buffer (bitstream_t *ctx, void *data, uint nb_bytes)
}
uint
-bitstream_read (bitstream_t *ctx, uint nb_bits)
+bitstream_read_ (bitstream_t *ctx, uint nb_bits __FL)
{
dbg_assert (ctx);
dbg_assert (ctx->direction == BITSTREAM_READ);
- dbg_assert (nb_bits > 0 && nb_bits <= 32);
+ dbg_blame (nb_bits > 0 && nb_bits <= 32);
/* If input buffer exhausted, read the next word. */
while (nb_bits > ctx->buffer_bits)
{
@@ -241,12 +241,12 @@ bitstream_read (bitstream_t *ctx, uint nb_bits)
}
void
-bitstream_write (bitstream_t *ctx, uint value, uint nb_bits)
+bitstream_write_ (bitstream_t *ctx, uint value, uint nb_bits __FL)
{
dbg_assert (ctx);
dbg_assert (ctx->direction == BITSTREAM_WRITE);
- dbg_assert (nb_bits > 0 && nb_bits <= 32);
- dbg_assert (nb_bits == 32 || (value & ~bit_mask (nb_bits)) == 0);
+ dbg_blame (nb_bits > 0 && nb_bits <= 32);
+ dbg_blame (nb_bits == 32 || (value & ~bit_mask (nb_bits)) == 0);
/* Write to output buffer. */
ctx->buffer = lshlwo64 (ctx->buffer, value, ctx->buffer_bits);
ctx->buffer_bits += nb_bits;