Merge pull request #47 from japaric/muldi

rename muldi4 to muldi3
This commit is contained in:
Jorge Aparicio 2016-08-18 21:44:42 -05:00 committed by GitHub
commit 6508c55b7d

View File

@ -66,7 +66,7 @@ macro_rules! mulo {
} }
} }
mul!(__muldi4: u64); mul!(__muldi3: u64);
mulo!(__mulosi4: i32); mulo!(__mulosi4: i32);
mulo!(__mulodi4: i64); mulo!(__mulodi4: i64);
@ -77,7 +77,7 @@ mod tests {
quickcheck! { quickcheck! {
fn muldi(a: U64, b: U64) -> bool { fn muldi(a: U64, b: U64) -> bool {
let (a, b) = (a.0, b.0); let (a, b) = (a.0, b.0);
let r = super::__muldi4(a, b); let r = super::__muldi3(a, b);
r == a.wrapping_mul(b) r == a.wrapping_mul(b)
} }