File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ extern "platform-intrinsic" {
41
41
pub ( crate ) fn simd_cast < T , U > ( x : T ) -> U ;
42
42
/// follows Rust's `T as U` semantics, including saturating float casts
43
43
/// which amounts to the same as `simd_cast` for many cases
44
- #[ cfg( not( bootstrap) ) ]
45
44
pub ( crate ) fn simd_as < T , U > ( x : T ) -> U ;
46
45
47
46
/// neg/fneg
Original file line number Diff line number Diff line change 62
62
/// `from_slice` will panic if the slice's `len` is less than the vector's `Simd::LANES`.
63
63
#[ must_use]
64
64
pub const fn from_slice ( slice : & [ T ] ) -> Self {
65
- assert ! (
66
- slice. len( ) >= LANES ,
67
- "slice length must be at least the number of lanes"
68
- ) ;
65
+ assert ! ( slice. len( ) >= LANES , "slice length must be at least the number of lanes" ) ;
69
66
let mut array = [ slice[ 0 ] ; LANES ] ;
70
67
let mut i = 0 ;
71
68
while i < LANES {
100
97
/// ```
101
98
#[ must_use]
102
99
#[ inline]
103
- #[ cfg( not( bootstrap) ) ]
104
100
pub fn cast < U : SimdElement > ( self ) -> Simd < U , LANES > {
105
101
unsafe { intrinsics:: simd_as ( self ) }
106
102
}
You can’t perform that action at this time.
0 commit comments