@@ -156,8 +156,7 @@ where
156
156
/// # Examples
157
157
/// ```
158
158
/// # #![feature(portable_simd)]
159
- /// # #[cfg(feature = "std")] use core_simd::Simd;
160
- /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
159
+ /// # use core::simd::Simd;
161
160
/// let floats: Simd<f32, 4> = Simd::from_array([1.9, -4.5, f32::INFINITY, f32::NAN]);
162
161
/// let ints = floats.cast::<i32>();
163
162
/// assert_eq!(ints, Simd::from_array([1, -4, i32::MAX, 0]));
@@ -184,8 +183,7 @@ where
184
183
/// # Examples
185
184
/// ```
186
185
/// # #![feature(portable_simd)]
187
- /// # #[cfg(feature = "std")] use core_simd::Simd;
188
- /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
186
+ /// # use core::simd::Simd;
189
187
/// let vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18];
190
188
/// let idxs = Simd::from_array([9, 3, 0, 5]);
191
189
/// let alt = Simd::from_array([-5, -4, -3, -2]);
@@ -205,8 +203,7 @@ where
205
203
/// # Examples
206
204
/// ```
207
205
/// # #![feature(portable_simd)]
208
- /// # #[cfg(feature = "std")] use core_simd::Simd;
209
- /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
206
+ /// # use core::simd::Simd;
210
207
/// let vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18];
211
208
/// let idxs = Simd::from_array([9, 3, 0, 5]);
212
209
///
@@ -229,8 +226,7 @@ where
229
226
/// # Examples
230
227
/// ```
231
228
/// # #![feature(portable_simd)]
232
- /// # #[cfg(feature = "std")] use core_simd::{Simd, Mask};
233
- /// # #[cfg(not(feature = "std"))] use core::simd::{Simd, Mask};
229
+ /// # use core::simd::{Simd, Mask};
234
230
/// let vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18];
235
231
/// let idxs = Simd::from_array([9, 3, 0, 5]);
236
232
/// let alt = Simd::from_array([-5, -4, -3, -2]);
@@ -264,8 +260,7 @@ where
264
260
/// # Examples
265
261
/// ```
266
262
/// # #![feature(portable_simd)]
267
- /// # #[cfg(feature = "std")] use core_simd::{Simd, Mask};
268
- /// # #[cfg(not(feature = "std"))] use core::simd::{Simd, Mask};
263
+ /// # use core::simd::{Simd, Mask};
269
264
/// let vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18];
270
265
/// let idxs = Simd::from_array([9, 3, 0, 5]);
271
266
/// let alt = Simd::from_array([-5, -4, -3, -2]);
@@ -300,8 +295,7 @@ where
300
295
/// # Examples
301
296
/// ```
302
297
/// # #![feature(portable_simd)]
303
- /// # #[cfg(feature = "std")] use core_simd::Simd;
304
- /// # #[cfg(not(feature = "std"))] use core::simd::Simd;
298
+ /// # use core::simd::Simd;
305
299
/// let mut vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18];
306
300
/// let idxs = Simd::from_array([9, 3, 0, 0]);
307
301
/// let vals = Simd::from_array([-27, 82, -41, 124]);
@@ -323,8 +317,7 @@ where
323
317
/// # Examples
324
318
/// ```
325
319
/// # #![feature(portable_simd)]
326
- /// # #[cfg(feature = "std")] use core_simd::{Simd, Mask};
327
- /// # #[cfg(not(feature = "std"))] use core::simd::{Simd, Mask};
320
+ /// # use core::simd::{Simd, Mask};
328
321
/// let mut vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18];
329
322
/// let idxs = Simd::from_array([9, 3, 0, 0]);
330
323
/// let vals = Simd::from_array([-27, 82, -41, 124]);
@@ -358,8 +351,7 @@ where
358
351
/// # Examples
359
352
/// ```
360
353
/// # #![feature(portable_simd)]
361
- /// # #[cfg(feature = "std")] use core_simd::{Simd, Mask};
362
- /// # #[cfg(not(feature = "std"))] use core::simd::{Simd, Mask};
354
+ /// # use core::simd::{Simd, Mask};
363
355
/// let mut vec: Vec<i32> = vec![10, 11, 12, 13, 14, 15, 16, 17, 18];
364
356
/// let idxs = Simd::from_array([9, 3, 0, 0]);
365
357
/// let vals = Simd::from_array([-27, 82, -41, 124]);
0 commit comments