Skip to content

refactor(backend): narrow unsafe scopes in SIMD kernels - #25

Open
cijiugechu wants to merge 1 commit into
fast:mainfrom
cijiugechu:refactor/narrow-simd-unsafe
Open

cijiugechu wants to merge 1 commit into
fast:mainfrom
cijiugechu:refactor/narrow-simd-unsafe

Conversation

@cijiugechu

Copy link
Copy Markdown
Contributor

Summary

  • Convert pure SIMD value helpers and slice-based x86 encode_ssse3 / encode_avx2 functions to safe #[target_feature] functions under the Rust 1.88 MSRV, reducing unsafe fn count across arch/{aarch64,x86}.rs from 48 to 27.
  • Narrow unsafe blocks inside raw-pointer SIMD kernels to cover only memory loads/stores, pointer arithmetic, and raw-pointer helper calls while leaving vector arithmetic in safe code.
  • Tighten // SAFETY: comments and # Safety documentation across all six modified backend files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant