Skip to content

Commit 81bc372

Browse files
committed
Auto merge of #174 - alexcrichton:less-compiler-rt, r=alexcrichton
Use the Rust implementation of udivsi3 on ARM Although compiler-rt presumably has a more optimized implementation written in assembly, it appears buggy for whatever reason, causing #173. For now let's see if integration into rust-lang/rust will work with the Rust-defined implementation!
2 parents a6bbbea + ecdaa14 commit 81bc372

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

build.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4204,7 +4204,6 @@ mod c {
42044204
"arm/switchu8.S",
42054205
"arm/sync_synchronize.S",
42064206
"arm/udivmodsi4.S",
4207-
"arm/udivsi3.S",
42084207
"arm/umodsi3.S",
42094208
],
42104209
);

src/int/udiv.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,6 @@ macro_rules! udivmod_inner {
148148
}
149149

150150
intrinsics! {
151-
#[use_c_shim_if(all(target_arch = "arm",
152-
not(target_os = "ios"),
153-
not(thumbv6m)))]
154151
#[arm_aeabi_alias = __aeabi_uidiv]
155152
/// Returns `n / d`
156153
pub extern "C" fn __udivsi3(n: u32, d: u32) -> u32 {

0 commit comments

Comments
 (0)