mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Remove the unnecessary PUFFS_LOW_BITS macro.
This commit is contained in:
1 parent
4302619eba
commit
73a4f2b263
5 files changed
+8
-13
No files matched your search
@@ -191,8 +191,6 @@ puffs_flate_status puffs_flate_decoder_decode_uncompressed(
|
||||
coro_susp_point = n; \
|
||||
case n:
|
||||
|
||||
#define PUFFS_LOW_BITS(x, n) ((x) & ((1 << (n)) - 1))
|
||||
|
||||
// Clang also defines "__GNUC__".
|
||||
#if defined(__GNUC__)
|
||||
#define PUFFS_LIKELY(expr) (__builtin_expect(!!(expr), 1))
|
||||
|
||||
+1
-3
@@ -261,8 +261,6 @@ puffs_gif_status puffs_gif_lzw_decoder_decode(puffs_gif_lzw_decoder* self,
|
||||
coro_susp_point = n; \
|
||||
case n:
|
||||
|
||||
#define PUFFS_LOW_BITS(x, n) ((x) & ((1 << (n)) - 1))
|
||||
|
||||
// Clang also defines "__GNUC__".
|
||||
#if defined(__GNUC__)
|
||||
#define PUFFS_LIKELY(expr) (__builtin_expect(!!(expr), 1))
|
||||
@@ -1136,7 +1134,7 @@ puffs_gif_status puffs_gif_lzw_decoder_decode(puffs_gif_lzw_decoder* self,
|
||||
v_bits |= (((uint32_t)(t_0)) << v_n_bits);
|
||||
v_n_bits += 8;
|
||||
}
|
||||
v_code = PUFFS_LOW_BITS(v_bits, v_width);
|
||||
v_code = ((v_bits) & ((1 << (v_width)) - 1));
|
||||
v_bits >>= v_width;
|
||||
v_n_bits -= v_width;
|
||||
if (v_code < v_clear_code) {
|
||||
|
||||
Reference in new issue
Block a user