fix more warnings

This commit is contained in:
Jorge Aparicio 2016-10-10 20:21:11 -05:00
parent e05caa1227
commit a163ca7ac3
3 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,6 @@
use int::{Int, LargeInt};
#[cfg(not(all(feature = "c", target_arch = "x86")))]
use int::LargeInt;
use int::Int;
macro_rules! mul {
($intrinsic:ident: $ty:ty) => {

View File

@ -1,3 +1,4 @@
#[cfg(not(all(feature = "c", target_arch = "x86")))]
use int::{Int, LargeInt};
macro_rules! ashl {

View File

@ -1,4 +1,4 @@
use core::{intrinsics, mem};
use core::intrinsics;
use int::{Int, LargeInt};
/// Returns `n / d`
@ -107,6 +107,8 @@ pub extern "C" fn __udivdi3(n: u64, d: u64) -> u64 {
#[cfg(not(all(feature = "c", target_arch = "x86")))]
#[cfg_attr(not(test), no_mangle)]
pub extern "C" fn __umoddi3(a: u64, b: u64) -> u64 {
use core::mem;
let mut rem = unsafe { mem::uninitialized() };
__udivmoddi4(a, b, Some(&mut rem));
rem