-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This ended up way more annoying than expected, because I needed to refactor the `types!` macro to separate out the stability attributes to put those on the `Debug` impl without also copying all the `#[doc]`s. But I like how it came out in the end, reducing duplication in the macro invocations. But without it all the C-consistency tests fail.
- Loading branch information
Showing
14 changed files
with
92 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,33 @@ | ||
types! { | ||
#![unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
|
||
/// LOONGARCH-specific 256-bit wide vector of 32 packed `i8`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v32i8(32 x pub(crate) i8); | ||
|
||
/// LOONGARCH-specific 256-bit wide vector of 16 packed `i16`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v16i16(16 x pub(crate) i16); | ||
|
||
/// LOONGARCH-specific 256-bit wide vector of 8 packed `i32`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v8i32(8 x pub(crate) i32); | ||
|
||
/// LOONGARCH-specific 256-bit wide vector of 4 packed `i64`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v4i64(4 x pub(crate) i64); | ||
|
||
/// LOONGARCH-specific 256-bit wide vector of 32 packed `u8`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v32u8(32 x pub(crate) u8); | ||
|
||
/// LOONGARCH-specific 256-bit wide vector of 16 packed `u16`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v16u16(16 x pub(crate) u16); | ||
|
||
/// LOONGARCH-specific 256-bit wide vector of 8 packed `u32`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v8u32(8 x pub(crate) u32); | ||
|
||
/// LOONGARCH-specific 256-bit wide vector of 4 packed `u64`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v4u64(4 x pub(crate) u64); | ||
|
||
/// LOONGARCH-specific 128-bit wide vector of 8 packed `f32`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v8f32(8 x pub(crate) f32); | ||
|
||
/// LOONGARCH-specific 256-bit wide vector of 4 packed `f64`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v4f64(4 x pub(crate) f64); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,33 @@ | ||
types! { | ||
#![unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
|
||
/// LOONGARCH-specific 128-bit wide vector of 16 packed `i8`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v16i8(16 x pub(crate) i8); | ||
|
||
/// LOONGARCH-specific 128-bit wide vector of 8 packed `i16`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v8i16(8 x pub(crate) i16); | ||
|
||
/// LOONGARCH-specific 128-bit wide vector of 4 packed `i32`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v4i32(4 x pub(crate) i32); | ||
|
||
/// LOONGARCH-specific 128-bit wide vector of 2 packed `i64`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v2i64(2 x pub(crate) i64); | ||
|
||
/// LOONGARCH-specific 128-bit wide vector of 16 packed `u8`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v16u8(16 x pub(crate) u8); | ||
|
||
/// LOONGARCH-specific 128-bit wide vector of 8 packed `u16`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v8u16(8 x pub(crate) u16); | ||
|
||
/// LOONGARCH-specific 128-bit wide vector of 4 packed `u32`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v4u32(4 x pub(crate) u32); | ||
|
||
/// LOONGARCH-specific 128-bit wide vector of 2 packed `u64`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v2u64(2 x pub(crate) u64); | ||
|
||
/// LOONGARCH-specific 128-bit wide vector of 4 packed `f32`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v4f32(4 x pub(crate) f32); | ||
|
||
/// LOONGARCH-specific 128-bit wide vector of 2 packed `f64`. | ||
#[unstable(feature = "stdarch_loongarch", issue = "117427")] | ||
pub struct v2f64(2 x pub(crate) f64); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.