-
Notifications
You must be signed in to change notification settings - Fork 142
[zerocopy] Re-enable big endian aarch64 types #3073
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -1350,12 +1350,26 @@ mod simd { | |||||||||||||||||||||||
| #[cfg(all(feature = "simd-nightly", target_arch = "powerpc64"))] | ||||||||||||||||||||||||
| powerpc64, powerpc64, vector_bool_long, vector_double, vector_signed_long, vector_unsigned_long | ||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||
| // NOTE: NEON intrinsics were broken on big-endian platforms from their stabilization up to | ||||||||||||||||||||||||
| // Rust 1.87. (Context in https://github.com/rust-lang/stdarch/issues/1484). Support is | ||||||||||||||||||||||||
| // split in two different version ranges on top of the base configuration, requiring either | ||||||||||||||||||||||||
| // little endian or the more recent version to be detected as well. | ||||||||||||||||||||||||
| #[cfg(not(no_zerocopy_aarch64_simd_1_59_0))] | ||||||||||||||||||||||||
| simd_arch_mod!( | ||||||||||||||||||||||||
| // NOTE(https://github.com/rust-lang/stdarch/issues/1484): NEON intrinsics are currently | ||||||||||||||||||||||||
| // broken on big-endian platforms. | ||||||||||||||||||||||||
| #[cfg(all(target_arch = "aarch64", target_endian = "little"))] | ||||||||||||||||||||||||
| #[cfg_attr(doc_cfg, doc(cfg(rust = "1.59.0")))] | ||||||||||||||||||||||||
| #[cfg(all( | ||||||||||||||||||||||||
| target_arch = "aarch64", | ||||||||||||||||||||||||
| any( | ||||||||||||||||||||||||
| target_endian = "little", | ||||||||||||||||||||||||
| not(no_zerocopy_aarch64_simd_be_1_87_0) | ||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||
| ))] | ||||||||||||||||||||||||
| #[cfg_attr( | ||||||||||||||||||||||||
| doc_cfg, | ||||||||||||||||||||||||
| doc(cfg(all(target_arch = "aarch64", any( | ||||||||||||||||||||||||
| all(rust = "1.59.0", target_endian = "little"), | ||||||||||||||||||||||||
| rust = "1.87.0", | ||||||||||||||||||||||||
| )))) | ||||||||||||||||||||||||
| )] | ||||||||||||||||||||||||
|
Comment on lines
+1366
to
+1372
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since I took those recommendations verbatim, I wanted to mark the commit with you in Co-Authored-By. It seems the CLA tool does not like it. How would you like me to refer to you?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Try |
||||||||||||||||||||||||
| aarch64, aarch64, float32x2_t, float32x4_t, float64x1_t, float64x2_t, int8x8_t, int8x8x2_t, | ||||||||||||||||||||||||
| int8x8x3_t, int8x8x4_t, int8x16_t, int8x16x2_t, int8x16x3_t, int8x16x4_t, int16x4_t, | ||||||||||||||||||||||||
| int16x8_t, int32x2_t, int32x4_t, int64x1_t, int64x2_t, poly8x8_t, poly8x8x2_t, poly8x8x3_t, | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.