Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/v3/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Patch

- Encode by the greatest multiple of blocks that fits 128 bits
- Use `doc_cfg` instead of `doc_auto_cfg`

## 0.1.2
Expand Down
7 changes: 1 addition & 6 deletions lib/v3/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,7 @@ fn encode_mut<Bit: BitWidth, Msb: Bool>(
let enc = enc(bit);
let dec = dec(bit);
let n = input.len() / enc;
let bs = match bit {
5 => 2,
6 => 4,
_ => 1,
};
vectorize(n, bs, |i| {
vectorize(n, 16 / enc, |i| {
let input = unsafe { chunk_unchecked(input, enc, i) };
let output = unsafe { chunk_mut_unchecked(output, dec, i) };
encode_block::<Bit, Msb>(symbols, input, output);
Expand Down
Loading