about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorJubilee <46493976+workingjubilee@users.noreply.github.com>2021-12-30 01:22:01 -0800
committerGitHub <noreply@github.com>2021-12-30 01:22:01 -0800
commit4bbef261b6dd8529dadfd41c04b72137657bc7e7 (patch)
treed8c9f81a7b723a019008b3348fe611bc3ec9ba63 /src/test/codegen/src-hash-algorithm
parent533f0fc81ab9ba097779fcd27c8f9ea12261fef5 (diff)
parenta42420583bdb6ea788c2f7ec0a0360d99934f2a7 (diff)
downloadrust-4bbef261b6dd8529dadfd41c04b72137657bc7e7.tar.gz
rust-4bbef261b6dd8529dadfd41c04b72137657bc7e7.zip
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
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions