Skip to content

Commit

Permalink
fix doctest for __m128d
Browse files Browse the repository at this point in the history
  • Loading branch information
usamoi authored and Amanieu committed Feb 24, 2025
1 parent 0e35041 commit 31e7792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/core_arch/src/x86/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ types! {
/// use std::arch::x86_64::*;
///
/// # fn main() {
/// # #[target_feature(enable = "sse")]
/// # #[target_feature(enable = "sse2")]
/// # unsafe fn foo() { unsafe {
/// let two_zeros = _mm_setzero_pd();
/// let two_ones = _mm_set1_pd(1.0);
/// let two_floats = _mm_set_pd(1.0, 2.0);
/// # }}
/// # if is_x86_feature_detected!("sse") { unsafe { foo() } }
/// # if is_x86_feature_detected!("sse2") { unsafe { foo() } }
/// # }
/// ```
pub struct __m128d(2 x f64);
Expand Down

0 comments on commit 31e7792

Please sign in to comment.