aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv/CodeGen.zig
diff options
context:
space:
mode:
authorIgor Anić <igor.anic@gmail.com>2025-08-07 23:40:08 +0200
committerGitHub <noreply@github.com>2025-08-07 14:40:08 -0700
commit6de23100352b9c94cc8c92737687091917951df3 (patch)
treebe8e7a019f147e1e41db5846c7e91380e6d0bd9b /src/codegen/spirv/CodeGen.zig
parent8843631f7ecfe0a7756a2f1f0bc99a24b57c2fcc (diff)
downloadzig-6de23100352b9c94cc8c92737687091917951df3.tar.gz
zig-6de23100352b9c94cc8c92737687091917951df3.zip
flate change bit reader Bits to usize (#24719)
Don't see why byte returned from specialPeek needs to be shifted by remaining_needed_bits. I believe that decision in specialPeek should be done on the number of the remaining bits not of the content of that bits. Some test result are changed, but they are now consistent with the original state as found in: https://github.com/ziglang/zig/blame/5f790464b0d5da3c4c1a7252643e7cdd4c4b605e/lib/std/compress/flate/Decompress.zig Changing Bits from usize to u32 or u64 now returns same results. * flate: simplify peekBitsEnding `peekBits` returns at most asked number of bits. Fails with EndOfStream when there are no available bits. If there are less bits available than asked still returns that available bits. Hopefully this change better reflects intention. On first input stream peek error we break the loop.
Diffstat (limited to 'src/codegen/spirv/CodeGen.zig')
0 files changed, 0 insertions, 0 deletions