Skip to content

adjust to MaybeUninit renames #707

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Mar 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/core_arch/src/x86/avx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2957,7 +2957,7 @@ pub unsafe fn _mm256_zextpd128_pd256(a: __m128d) -> __m256d {
#[stable(feature = "simd_x86", since = "1.27.0")]
pub unsafe fn _mm256_undefined_ps() -> __m256 {
// FIXME: this function should return MaybeUninit<__m256>
mem::MaybeUninit::<__m256>::uninitialized().into_initialized()
mem::MaybeUninit::<__m256>::uninit().assume_init()
}

/// Returns vector of type `__m256d` with undefined elements.
Expand All @@ -2969,7 +2969,7 @@ pub unsafe fn _mm256_undefined_ps() -> __m256 {
#[stable(feature = "simd_x86", since = "1.27.0")]
pub unsafe fn _mm256_undefined_pd() -> __m256d {
// FIXME: this function should return MaybeUninit<__m256d>
mem::MaybeUninit::<__m256d>::uninitialized().into_initialized()
mem::MaybeUninit::<__m256d>::uninit().assume_init()
}

/// Returns vector of type __m256i with undefined elements.
Expand All @@ -2981,7 +2981,7 @@ pub unsafe fn _mm256_undefined_pd() -> __m256d {
#[stable(feature = "simd_x86", since = "1.27.0")]
pub unsafe fn _mm256_undefined_si256() -> __m256i {
// FIXME: this function should return MaybeUninit<__m256i>
mem::MaybeUninit::<__m256i>::uninitialized().into_initialized()
mem::MaybeUninit::<__m256i>::uninit().assume_init()
}

/// Sets packed __m256 returned vector with the supplied values.
Expand Down
2 changes: 1 addition & 1 deletion crates/core_arch/src/x86/sse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1884,7 +1884,7 @@ pub unsafe fn _mm_prefetch(p: *const i8, strategy: i32) {
#[stable(feature = "simd_x86", since = "1.27.0")]
pub unsafe fn _mm_undefined_ps() -> __m128 {
// FIXME: this function should return MaybeUninit<__m128>
mem::MaybeUninit::<__m128>::uninitialized().into_initialized()
mem::MaybeUninit::<__m128>::uninit().assume_init()
}

/// Transpose the 4x4 matrix formed by 4 rows of __m128 in place.
Expand Down
4 changes: 2 additions & 2 deletions crates/core_arch/src/x86/sse2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2856,7 +2856,7 @@ pub unsafe fn _mm_castsi128_ps(a: __m128i) -> __m128 {
#[stable(feature = "simd_x86", since = "1.27.0")]
pub unsafe fn _mm_undefined_pd() -> __m128d {
// FIXME: this function should return MaybeUninit<__m128d>
mem::MaybeUninit::<__m128d>::uninitialized().into_initialized()
mem::MaybeUninit::<__m128d>::uninit().assume_init()
}

/// Returns vector of type __m128i with undefined elements.
Expand All @@ -2867,7 +2867,7 @@ pub unsafe fn _mm_undefined_pd() -> __m128d {
#[stable(feature = "simd_x86", since = "1.27.0")]
pub unsafe fn _mm_undefined_si128() -> __m128i {
// FIXME: this function should return MaybeUninit<__m128i>
mem::MaybeUninit::<__m128i>::uninitialized().into_initialized()
mem::MaybeUninit::<__m128i>::uninit().assume_init()
}

/// The resulting `__m128d` element is composed by the low-order values of
Expand Down