File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1897,11 +1897,13 @@ pub const _MM_HINT_ET1: i32 = 6;
1897
1897
#[ cfg_attr( test, assert_instr( prefetchnta, STRATEGY = _MM_HINT_NTA) ) ]
1898
1898
#[ rustc_legacy_const_generics( 1 ) ]
1899
1899
#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
1900
- pub unsafe fn _mm_prefetch < const STRATEGY : i32 > ( p : * const i8 ) {
1900
+ pub fn _mm_prefetch < const STRATEGY : i32 > ( p : * const i8 ) {
1901
1901
static_assert_uimm_bits ! ( STRATEGY , 3 ) ;
1902
1902
// We use the `llvm.prefetch` intrinsic with `cache type` = 1 (data cache).
1903
1903
// `locality` and `rw` are based on our `STRATEGY`.
1904
- prefetch ( p, ( STRATEGY >> 2 ) & 1 , STRATEGY & 3 , 1 ) ;
1904
+ unsafe {
1905
+ prefetch ( p, ( STRATEGY >> 2 ) & 1 , STRATEGY & 3 , 1 ) ;
1906
+ }
1905
1907
}
1906
1908
1907
1909
/// Returns vector of type __m128 with indeterminate elements.with indetermination elements.
You can’t perform that action at this time.
0 commit comments