Commit f88d1c95 authored by Jeremy Soller's avatar Jeremy Soller

When building from Redox tree, udivdi3 is not required

parent 951ca9fe
......@@ -154,22 +154,3 @@ pub unsafe extern fn memcmp(s1: *const u8, s2: *const u8, n: usize) -> i32 {
0
}
extern "C" {
/// Returns `n / d` and sets `*rem = n % d`
fn __udivmoddi4(n: u64, d: u64, rem: Option<&mut u64>) -> u64;
}
/// Returns `n / d`
#[no_mangle]
pub unsafe extern "C" fn __udivdi3(n: u64, d: u64) -> u64 {
__udivmoddi4(n, d, None)
}
/// Returns `n % d`
#[no_mangle]
pub unsafe extern "C" fn __umoddi3(n: u64, d: u64) -> u64 {
let mut rem = 0;
__udivmoddi4(n, d, Some(&mut rem));
rem
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment