@@ -10,7 +10,8 @@ macro_rules! impl_uint_arith {
1010 /// # Examples
1111 /// ```
1212 /// # #![feature(portable_simd)]
13- /// # use core_simd::*;
13+ /// # #[cfg(feature = "std")] use core_simd::Simd;
14+ /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
1415 #[ doc = concat!( "# use core::" , stringify!( $ty) , "::MAX;" ) ]
1516 /// let x = Simd::from_array([2, 1, 0, MAX]);
1617 /// let max = Simd::splat(MAX);
@@ -29,7 +30,8 @@ macro_rules! impl_uint_arith {
2930 /// # Examples
3031 /// ```
3132 /// # #![feature(portable_simd)]
32- /// # use core_simd::*;
33+ /// # #[cfg(feature = "std")] use core_simd::Simd;
34+ /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
3335 #[ doc = concat!( "# use core::" , stringify!( $ty) , "::MAX;" ) ]
3436 /// let x = Simd::from_array([2, 1, 0, MAX]);
3537 /// let max = Simd::splat(MAX);
@@ -54,7 +56,8 @@ macro_rules! impl_int_arith {
5456 /// # Examples
5557 /// ```
5658 /// # #![feature(portable_simd)]
57- /// # use core_simd::*;
59+ /// # #[cfg(feature = "std")] use core_simd::Simd;
60+ /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
5861 #[ doc = concat!( "# use core::" , stringify!( $ty) , "::{MIN, MAX};" ) ]
5962 /// let x = Simd::from_array([MIN, 0, 1, MAX]);
6063 /// let max = Simd::splat(MAX);
@@ -73,7 +76,8 @@ macro_rules! impl_int_arith {
7376 /// # Examples
7477 /// ```
7578 /// # #![feature(portable_simd)]
76- /// # use core_simd::*;
79+ /// # #[cfg(feature = "std")] use core_simd::Simd;
80+ /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
7781 #[ doc = concat!( "# use core::" , stringify!( $ty) , "::{MIN, MAX};" ) ]
7882 /// let x = Simd::from_array([MIN, -2, -1, MAX]);
7983 /// let max = Simd::splat(MAX);
@@ -92,7 +96,8 @@ macro_rules! impl_int_arith {
9296 /// # Examples
9397 /// ```
9498 /// # #![feature(portable_simd)]
95- /// # use core_simd::*;
99+ /// # #[cfg(feature = "std")] use core_simd::Simd;
100+ /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
96101 #[ doc = concat!( "# use core::" , stringify!( $ty) , "::{MIN, MAX};" ) ]
97102 /// let xs = Simd::from_array([MIN, MIN +1, -5, 0]);
98103 /// assert_eq!(xs.abs(), Simd::from_array([MIN, MAX, 5, 0]));
@@ -110,7 +115,8 @@ macro_rules! impl_int_arith {
110115 /// # Examples
111116 /// ```
112117 /// # #![feature(portable_simd)]
113- /// # use core_simd::*;
118+ /// # #[cfg(feature = "std")] use core_simd::Simd;
119+ /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
114120 #[ doc = concat!( "# use core::" , stringify!( $ty) , "::{MIN, MAX};" ) ]
115121 /// let xs = Simd::from_array([MIN, -2, 0, 3]);
116122 /// let unsat = xs.abs();
@@ -132,7 +138,8 @@ macro_rules! impl_int_arith {
132138 /// # Examples
133139 /// ```
134140 /// # #![feature(portable_simd)]
135- /// # use core_simd::*;
141+ /// # #[cfg(feature = "std")] use core_simd::Simd;
142+ /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
136143 #[ doc = concat!( "# use core::" , stringify!( $ty) , "::{MIN, MAX};" ) ]
137144 /// let x = Simd::from_array([MIN, -2, 3, MAX]);
138145 /// let unsat = -x;
0 commit comments