Skip to content

Commit 4bbef26

Browse files
Merge portable-simd#210 - ./wrap-shifts
Refactor ops.rs with wrapping shifts This approaches reducing macro nesting in a slightly different way. Instead of just flattening details, make one macro apply another. This allows specifying all details up-front in the first macro invocation, making it easier to audit and refactor in the future. This refactor also has some functional changes. Only one is a true behavior change, however: - The visible one is that SIMD shifts are now wrapping, not panicking on overflow - `core::simd` now has a lot more instances of `#[must_use]`, which merely lints - div/rem now perform a SIMD check but remain as before, which should improve performance but be invisible
2 parents 533f0fc + a424205 commit 4bbef26

File tree

1 file changed

+175
-202
lines changed

1 file changed

+175
-202
lines changed

0 commit comments

Comments
 (0)