File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,6 @@ extern "platform-intrinsic" {
6262 pub ( crate ) fn simd_xor < T > ( x : T , y : T ) -> T ;
6363
6464 /// getelementptr (without inbounds)
65- #[ cfg( not( bootstrap) ) ]
6665 pub ( crate ) fn simd_arith_offset < T , U > ( ptrs : T , offsets : U ) -> T ;
6766
6867 /// fptoui/fptosi/uitofp/sitofp
Original file line number Diff line number Diff line change 11//! Private implementation details of public gather/scatter APIs.
2- #[ cfg( not( bootstrap) ) ]
32use crate :: simd:: intrinsics;
43use crate :: simd:: { LaneCount , Simd , SupportedLaneCount } ;
5- #[ cfg( bootstrap) ]
6- use core:: mem;
74
85/// A vector of *const T.
96#[ derive( Debug , Copy , Clone ) ]
2421 #[ inline]
2522 #[ must_use]
2623 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) ) ]
3524 // Safety: this intrinsic doesn't have a precondition
3625 unsafe { intrinsics:: simd_arith_offset ( self , addend) }
3726 }
5645 #[ inline]
5746 #[ must_use]
5847 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) ) ]
6748 // Safety: this intrinsic doesn't have a precondition
6849 unsafe { intrinsics:: simd_arith_offset ( self , addend) }
6950 }
You can’t perform that action at this time.
0 commit comments