@@ -10,7 +10,8 @@ macro_rules! impl_uint_arith {
10
10
/// # Examples
11
11
/// ```
12
12
/// # #![feature(portable_simd)]
13
- /// # use core_simd::*;
13
+ /// # #[cfg(feature = "std")] use core_simd::Simd;
14
+ /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
14
15
#[ doc = concat!( "# use core::" , stringify!( $ty) , "::MAX;" ) ]
15
16
/// let x = Simd::from_array([2, 1, 0, MAX]);
16
17
/// let max = Simd::splat(MAX);
@@ -29,7 +30,8 @@ macro_rules! impl_uint_arith {
29
30
/// # Examples
30
31
/// ```
31
32
/// # #![feature(portable_simd)]
32
- /// # use core_simd::*;
33
+ /// # #[cfg(feature = "std")] use core_simd::Simd;
34
+ /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
33
35
#[ doc = concat!( "# use core::" , stringify!( $ty) , "::MAX;" ) ]
34
36
/// let x = Simd::from_array([2, 1, 0, MAX]);
35
37
/// let max = Simd::splat(MAX);
@@ -54,7 +56,8 @@ macro_rules! impl_int_arith {
54
56
/// # Examples
55
57
/// ```
56
58
/// # #![feature(portable_simd)]
57
- /// # use core_simd::*;
59
+ /// # #[cfg(feature = "std")] use core_simd::Simd;
60
+ /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
58
61
#[ doc = concat!( "# use core::" , stringify!( $ty) , "::{MIN, MAX};" ) ]
59
62
/// let x = Simd::from_array([MIN, 0, 1, MAX]);
60
63
/// let max = Simd::splat(MAX);
@@ -73,7 +76,8 @@ macro_rules! impl_int_arith {
73
76
/// # Examples
74
77
/// ```
75
78
/// # #![feature(portable_simd)]
76
- /// # use core_simd::*;
79
+ /// # #[cfg(feature = "std")] use core_simd::Simd;
80
+ /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
77
81
#[ doc = concat!( "# use core::" , stringify!( $ty) , "::{MIN, MAX};" ) ]
78
82
/// let x = Simd::from_array([MIN, -2, -1, MAX]);
79
83
/// let max = Simd::splat(MAX);
@@ -92,7 +96,8 @@ macro_rules! impl_int_arith {
92
96
/// # Examples
93
97
/// ```
94
98
/// # #![feature(portable_simd)]
95
- /// # use core_simd::*;
99
+ /// # #[cfg(feature = "std")] use core_simd::Simd;
100
+ /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
96
101
#[ doc = concat!( "# use core::" , stringify!( $ty) , "::{MIN, MAX};" ) ]
97
102
/// let xs = Simd::from_array([MIN, MIN +1, -5, 0]);
98
103
/// assert_eq!(xs.abs(), Simd::from_array([MIN, MAX, 5, 0]));
@@ -110,7 +115,8 @@ macro_rules! impl_int_arith {
110
115
/// # Examples
111
116
/// ```
112
117
/// # #![feature(portable_simd)]
113
- /// # use core_simd::*;
118
+ /// # #[cfg(feature = "std")] use core_simd::Simd;
119
+ /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
114
120
#[ doc = concat!( "# use core::" , stringify!( $ty) , "::{MIN, MAX};" ) ]
115
121
/// let xs = Simd::from_array([MIN, -2, 0, 3]);
116
122
/// let unsat = xs.abs();
@@ -132,7 +138,8 @@ macro_rules! impl_int_arith {
132
138
/// # Examples
133
139
/// ```
134
140
/// # #![feature(portable_simd)]
135
- /// # use core_simd::*;
141
+ /// # #[cfg(feature = "std")] use core_simd::Simd;
142
+ /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
136
143
#[ doc = concat!( "# use core::" , stringify!( $ty) , "::{MIN, MAX};" ) ]
137
144
/// let x = Simd::from_array([MIN, -2, 3, MAX]);
138
145
/// let unsat = -x;
0 commit comments