You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is in preparation for bumping the lint set, which will include
`clippy::cast_possible_wrap`.
For the fallback code using `Shl`, we don't need to cast as `Shl` is
implemented for all scalar types as shift argument. Casting versus
calling directly compile to the same thing:
https://godbolt.org/z/6G9bvYdjd.
For the x86 code, we cast from `u32` to `i32`, so we can use
`u32::cast_signed` for that, which explicitly stays at the same bit
width and has the sign behavior that's probably expected here.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,7 @@ This release has an [MSRV][] of 1.88.
68
68
- Breaking change: the `Element` type on the `SimdBase` trait is now an associated type instead of a type parameter. This should make it more pleasant to write code that's generic over different vector types. ([#170][] by [@valadaptive][])
69
69
- The `WasmSimd128` token type now wraps the new `crate::core_arch::wasm32::WasmSimd128` type. This doesn't expose any new functionality as WASM SIMD128 can only be enabled statically, but matches all the other backend tokens. ([#176][] by [@valadaptive][])
70
70
- Breaking change: the `SimdFrom::simd_from` method now takes the SIMD token as the first argument instead of the second. This matches the argument order of the `from_slice`, `splat`, and `from_fn` methods on `SimdBase`. ([#180][] by [@valadaptive][])
71
+
- Code generation has been improved for shift argument casting on x86 and for scalar fallback. ([#186][] by [@tomcur][])
71
72
72
73
### Removed
73
74
@@ -127,6 +128,7 @@ No changelog was kept for this release.
127
128
128
129
[@Ralith]: https://github.com/Ralith
129
130
[@DJMcNab]: https://github.com/DJMcNab
131
+
[@tomcur]: https://github.com/tomcur
130
132
[@valadaptive]: https://github.com/valadaptive
131
133
[@LaurenzV]: https://github.com/LaurenzV
132
134
[@Shnatsel]: https://github.com/Shnatsel
@@ -168,6 +170,7 @@ No changelog was kept for this release.
0 commit comments