File tree 2 files changed +0
-20
lines changed
2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,6 @@ extern "platform-intrinsic" {
62
62
pub ( crate ) fn simd_xor < T > ( x : T , y : T ) -> T ;
63
63
64
64
/// getelementptr (without inbounds)
65
- #[ cfg( not( bootstrap) ) ]
66
65
pub ( crate ) fn simd_arith_offset < T , U > ( ptrs : T , offsets : U ) -> T ;
67
66
68
67
/// fptoui/fptosi/uitofp/sitofp
Original file line number Diff line number Diff line change 1
1
//! Private implementation details of public gather/scatter APIs.
2
- #[ cfg( not( bootstrap) ) ]
3
2
use crate :: simd:: intrinsics;
4
3
use crate :: simd:: { LaneCount , Simd , SupportedLaneCount } ;
5
- #[ cfg( bootstrap) ]
6
- use core:: mem;
7
4
8
5
/// A vector of *const T.
9
6
#[ derive( Debug , Copy , Clone ) ]
24
21
#[ inline]
25
22
#[ must_use]
26
23
pub fn wrapping_add ( self , addend : Simd < usize , LANES > ) -> Self {
27
- #[ cfg( bootstrap) ]
28
- // Safety: converting pointers to usize and vice-versa is safe
29
- // (even if using that pointer is not)
30
- unsafe {
31
- let x: Simd < usize , LANES > = mem:: transmute_copy ( & self ) ;
32
- mem:: transmute_copy ( & { x + ( addend * Simd :: splat ( mem:: size_of :: < T > ( ) ) ) } )
33
- }
34
- #[ cfg( not( bootstrap) ) ]
35
24
// Safety: this intrinsic doesn't have a precondition
36
25
unsafe { intrinsics:: simd_arith_offset ( self , addend) }
37
26
}
56
45
#[ inline]
57
46
#[ must_use]
58
47
pub fn wrapping_add ( self , addend : Simd < usize , LANES > ) -> Self {
59
- #[ cfg( bootstrap) ]
60
- // Safety: converting pointers to usize and vice-versa is safe
61
- // (even if using that pointer is not)
62
- unsafe {
63
- let x: Simd < usize , LANES > = mem:: transmute_copy ( & self ) ;
64
- mem:: transmute_copy ( & { x + ( addend * Simd :: splat ( mem:: size_of :: < T > ( ) ) ) } )
65
- }
66
- #[ cfg( not( bootstrap) ) ]
67
48
// Safety: this intrinsic doesn't have a precondition
68
49
unsafe { intrinsics:: simd_arith_offset ( self , addend) }
69
50
}
You can’t perform that action at this time.
0 commit comments