Skip to content

Commit 2986e47

Browse files
Refactor decompress_bmi2_ptr to reduce complexity
Extracted the match copying logic from `decompress_bmi2_ptr` into a new helper function `copy_match_bmi2`. This significantly reduces the size and complexity of the main decompression loop, improving readability and maintainability. The helper function retains the `unsafe` block and `#[target_feature]` attributes to ensure correct SIMD code generation. Removed `#[inline(always)]` from the helper to comply with compiler stability rules for target features. Co-authored-by: 404Setup <[email protected]>
1 parent 183fc18 commit 2986e47

1 file changed

Lines changed: 165 additions & 279 deletions

File tree

0 commit comments

Comments
 (0)