File tree 4 files changed +8
-8
lines changed
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ impl Mulo for i64 {}
71
71
impl Mulo for i128 { }
72
72
73
73
intrinsics ! {
74
- #[ use_c_shim_if( target_arch = "x86" ) ]
74
+ #[ use_c_shim_if( all ( target_arch = "x86" , not ( target_env = "msvc" ) ) ) ]
75
75
pub extern "C" fn __muldi3( a: u64 , b: u64 ) -> u64 {
76
76
a. mul( b)
77
77
}
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ intrinsics! {
64
64
a. div( b)
65
65
}
66
66
67
- #[ use_c_shim_if( target_arch = "x86" ) ]
67
+ #[ use_c_shim_if( all ( target_arch = "x86" , not ( target_env = "msvc" ) ) ) ]
68
68
pub extern "C" fn __divdi3( a: i64 , b: i64 ) -> i64 {
69
69
a. div( b)
70
70
}
@@ -79,7 +79,7 @@ intrinsics! {
79
79
a. mod_( b)
80
80
}
81
81
82
- #[ use_c_shim_if( target_arch = "x86" ) ]
82
+ #[ use_c_shim_if( all ( target_arch = "x86" , not ( target_env = "msvc" ) ) ) ]
83
83
pub extern "C" fn __moddi3( a: i64 , b: i64 ) -> i64 {
84
84
a. mod_( b)
85
85
}
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ impl Lshr for u64 {}
65
65
impl Lshr for u128 { }
66
66
67
67
intrinsics ! {
68
- #[ use_c_shim_if( target_arch = "x86" ) ]
68
+ #[ use_c_shim_if( all ( target_arch = "x86" , not ( target_env = "msvc" ) ) ) ]
69
69
pub extern "C" fn __ashldi3( a: u64 , b: u32 ) -> u64 {
70
70
a. ashl( b)
71
71
}
@@ -74,7 +74,7 @@ intrinsics! {
74
74
a. ashl( b)
75
75
}
76
76
77
- #[ use_c_shim_if( target_arch = "x86" ) ]
77
+ #[ use_c_shim_if( all ( target_arch = "x86" , not ( target_env = "msvc" ) ) ) ]
78
78
pub extern "C" fn __ashrdi3( a: i64 , b: u32 ) -> i64 {
79
79
a. ashr( b)
80
80
}
@@ -83,7 +83,7 @@ intrinsics! {
83
83
a. ashr( b)
84
84
}
85
85
86
- #[ use_c_shim_if( target_arch = "x86" ) ]
86
+ #[ use_c_shim_if( all ( target_arch = "x86" , not ( target_env = "msvc" ) ) ) ]
87
87
pub extern "C" fn __lshrdi3( a: u64 , b: u32 ) -> u64 {
88
88
a. lshr( b)
89
89
}
Original file line number Diff line number Diff line change @@ -227,13 +227,13 @@ intrinsics! {
227
227
q
228
228
}
229
229
230
- #[ use_c_shim_if( target_arch = "x86" ) ]
230
+ #[ use_c_shim_if( all ( target_arch = "x86" , not ( target_env = "msvc" ) ) ) ]
231
231
/// Returns `n / d`
232
232
pub extern "C" fn __udivdi3( n: u64 , d: u64 ) -> u64 {
233
233
__udivmoddi4( n, d, None )
234
234
}
235
235
236
- #[ use_c_shim_if( target_arch = "x86" ) ]
236
+ #[ use_c_shim_if( all ( target_arch = "x86" , not ( target_env = "msvc" ) ) ) ]
237
237
/// Returns `n % d`
238
238
pub extern "C" fn __umoddi3( n: u64 , d: u64 ) -> u64 {
239
239
let mut rem = 0 ;
You can’t perform that action at this time.
0 commit comments