From 1c4318331663b152b0b298bd2c9e5c971506a86b Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 10 Jun 2023 16:44:19 +0100 Subject: Prune some comments and tidy up other minor things --- src/bitbuf.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/bitbuf.h') diff --git a/src/bitbuf.h b/src/bitbuf.h index 8700af3..a2ee60f 100644 --- a/src/bitbuf.h +++ b/src/bitbuf.h @@ -1,5 +1,5 @@ /* - * Copyright © 2021 Michael Smith + * Copyright © 2023 Michael Smith * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -49,8 +49,7 @@ static inline void bitbuf_appendbits(struct bitbuf *bb, bitbuf_cell x, // OR into the existing cell (lower bits were already set!) bb->buf_as_cells[idx] |= x << shift; // assign the next cell (that also clears the upper bits for the next OR) - // note: if nbits fits in the first cell, this just 0s the next cell, which - // is absolutely fine + // if nbits fits in the first cell, this zeros the next cell, which is fine bb->buf_as_cells[idx + 1] = x >> (bitbuf_cell_bits - shift); bb->curbit += nbits; } -- cgit v1.2.3