packed-simd: apply upstream patches to fix build with new rustc.
Peter Michael Green
3 years ago
0 | rust-packed-simd (0.3.3-6) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium | |
1 | ||
2 | * Team upload. | |
3 | * Package packed_simd 0.3.3 from crates.io using debcargo 2.4.3 | |
4 | * Apply upstream patches to fix build with new rustc. | |
5 | ||
6 | -- Peter Michael Green <plugwash@debian.org> Fri, 01 Jan 2021 16:51:08 +0000 | |
7 | ||
0 | 8 | rust-packed-simd (0.3.3-5) unstable; urgency=medium |
1 | 9 | |
2 | 10 | * Team upload. |
10 | 10 | |
11 | 11 | Files: debian/* |
12 | 12 | Copyright: |
13 | 2018-2020 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> | |
13 | 2018-2021 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> | |
14 | 14 | 2018-2019 Ximin Luo <infinity0@debian.org> |
15 | 15 | 2018-2019 kpcyrd <git@rxv.cc> |
16 | 16 | License: MIT or Apache-2.0 |
20 | 20 | |
21 | 21 | Files: debian/* |
22 | 22 | Copyright: |
23 | 2018-2020 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> | |
24 | 2018-2020 Ximin Luo <infinity0@debian.org> | |
25 | 2018-2020 kpcyrd <git@rxv.cc> | |
23 | 2018-2021 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> | |
24 | 2018-2021 Ximin Luo <infinity0@debian.org> | |
25 | 2018-2021 kpcyrd <git@rxv.cc> | |
26 | 26 | License: MIT or Apache-2.0 |
27 | 27 | |
28 | 28 | License: Apache-2.0 |
0 | commit 57d96e45916066fa9b5cdf2bc695e190207e78af | |
1 | Author: Jubilee Young <workingjubilee@gmail.com> | |
2 | Date: Wed Sep 23 12:23:29 2020 -0700 | |
3 | ||
4 | Remove __m64 type | |
5 | ||
6 | diff --git a/src/api/into_bits/arch_specific.rs b/src/api/into_bits/arch_specific.rs | |
7 | index 6cc2fa3..7b56010 100644 | |
8 | --- a/src/api/into_bits/arch_specific.rs | |
9 | +++ b/src/api/into_bits/arch_specific.rs | |
10 | @@ -86,5 +86,4 @@ macro_rules! impl_arch { | |
11 | impl_arch!( | |
12 | - [x86["x86"]: __m64], [x86_64["x86_64"]: __m64], | |
13 | [arm["arm"]: int8x8_t, uint8x8_t, poly8x8_t, int16x4_t, uint16x4_t, | |
14 | poly16x4_t, int32x2_t, uint32x2_t, float32x2_t, int64x1_t, | |
15 | uint64x1_t], |
0 | commit e4edaf7f40818439f1dc8ac4317c73ec0b67bc8d | |
1 | Author: Gabriel Majeri <gabriel.majeri6@gmail.com> | |
2 | Date: Tue Jul 2 11:02:48 2019 +0300 | |
3 | ||
4 | Remove align_offset unstable feature | |
5 | ||
6 | diff --git a/src/lib.rs b/src/lib.rs | |
7 | index d73645e..e4d5eda 100644 | |
8 | --- a/src/lib.rs | |
9 | +++ b/src/lib.rs | |
10 | @@ -209,7 +209,6 @@ | |
11 | link_llvm_intrinsics, | |
12 | core_intrinsics, | |
13 | stmt_expr_attributes, | |
14 | - align_offset, | |
15 | mmx_target_feature, | |
16 | crate_visibility_modifier, | |
17 | custom_inner_attributes |
0 | commit 950903a66950eaff745b0a029f2051d305df1c22 | |
1 | Author: Justus K <justus.k@protonmail.com> | |
2 | Date: Tue Sep 22 15:36:03 2020 +0200 | |
3 | ||
4 | Remove `x86_m8x8_sse_impl` macro | |
5 | ||
6 | diff --git a/src/codegen/reductions/mask/x86/sse.rs b/src/codegen/reductions/mask/x86/sse.rs | |
7 | index 7482f94..eb1ef7f 100644 | |
8 | --- a/src/codegen/reductions/mask/x86/sse.rs | |
9 | +++ b/src/codegen/reductions/mask/x86/sse.rs | |
10 | @@ -34,35 +34,3 @@ macro_rules! x86_m32x4_sse_impl { | |
11 | } | |
12 | }; | |
13 | } | |
14 | - | |
15 | -macro_rules! x86_m8x8_sse_impl { | |
16 | - ($id:ident) => { | |
17 | - impl All for $id { | |
18 | - #[inline] | |
19 | - #[target_feature(enable = "sse")] | |
20 | - unsafe fn all(self) -> bool { | |
21 | - #[cfg(target_arch = "x86")] | |
22 | - use crate::arch::x86::_mm_movemask_pi8; | |
23 | - #[cfg(target_arch = "x86_64")] | |
24 | - use crate::arch::x86_64::_mm_movemask_pi8; | |
25 | - // _mm_movemask_pi8(a) creates an 8bit mask containing the most | |
26 | - // significant bit of each byte of `a`. If all bits are set, | |
27 | - // then all 8 lanes of the mask are true. | |
28 | - _mm_movemask_pi8(crate::mem::transmute(self)) | |
29 | - == u8::max_value() as i32 | |
30 | - } | |
31 | - } | |
32 | - impl Any for $id { | |
33 | - #[inline] | |
34 | - #[target_feature(enable = "sse")] | |
35 | - unsafe fn any(self) -> bool { | |
36 | - #[cfg(target_arch = "x86")] | |
37 | - use crate::arch::x86::_mm_movemask_pi8; | |
38 | - #[cfg(target_arch = "x86_64")] | |
39 | - use crate::arch::x86_64::_mm_movemask_pi8; | |
40 | - | |
41 | - _mm_movemask_pi8(crate::mem::transmute(self)) != 0 | |
42 | - } | |
43 | - } | |
44 | - }; | |
45 | -} |
+40
-0
0 | commit 778c0706f356118c7a5dd11c06725fc6c6b84621 | |
1 | Author: Justus K <justus.k@protonmail.com> | |
2 | Date: Tue Sep 22 15:27:53 2020 +0200 | |
3 | ||
4 | Replace `_mm_movemask_pi8` with the fallback_impl | |
5 | ||
6 | This has to be done, because `_mm_movemask_pi8` got removed | |
7 | from stdarch in https://github.com/rust-lang/stdarch/pull/890 | |
8 | ||
9 | diff --git a/src/codegen/reductions/mask/x86.rs b/src/codegen/reductions/mask/x86.rs | |
10 | index 2ae4ed8..bcfb1a6 100644 | |
11 | --- a/src/codegen/reductions/mask/x86.rs | |
12 | +++ b/src/codegen/reductions/mask/x86.rs | |
13 | @@ -19,13 +19,7 @@ mod avx2; | |
14 | /// x86 64-bit m8x8 implementation | |
15 | macro_rules! x86_m8x8_impl { | |
16 | ($id:ident) => { | |
17 | - cfg_if! { | |
18 | - if #[cfg(all(target_arch = "x86_64", target_feature = "sse"))] { | |
19 | - x86_m8x8_sse_impl!($id); | |
20 | - } else { | |
21 | - fallback_impl!($id); | |
22 | - } | |
23 | - } | |
24 | + fallback_impl!($id); | |
25 | }; | |
26 | } | |
27 | ||
28 | diff --git a/src/lib.rs b/src/lib.rs | |
29 | index c3da0d3..cbd438c 100644 | |
30 | --- a/src/lib.rs | |
31 | +++ b/src/lib.rs | |
32 | @@ -209,7 +209,6 @@ | |
33 | link_llvm_intrinsics, | |
34 | core_intrinsics, | |
35 | stmt_expr_attributes, | |
36 | - mmx_target_feature, | |
37 | crate_visibility_modifier, | |
38 | custom_inner_attributes | |
39 | )] |