fix more warnings
This commit is contained in:
parent
e05caa1227
commit
a163ca7ac3
@ -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 {
|
macro_rules! mul {
|
||||||
($intrinsic:ident: $ty:ty) => {
|
($intrinsic:ident: $ty:ty) => {
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#[cfg(not(all(feature = "c", target_arch = "x86")))]
|
||||||
use int::{Int, LargeInt};
|
use int::{Int, LargeInt};
|
||||||
|
|
||||||
macro_rules! ashl {
|
macro_rules! ashl {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
use core::{intrinsics, mem};
|
use core::intrinsics;
|
||||||
use int::{Int, LargeInt};
|
use int::{Int, LargeInt};
|
||||||
|
|
||||||
/// Returns `n / d`
|
/// 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(not(all(feature = "c", target_arch = "x86")))]
|
||||||
#[cfg_attr(not(test), no_mangle)]
|
#[cfg_attr(not(test), no_mangle)]
|
||||||
pub extern "C" fn __umoddi3(a: u64, b: u64) -> u64 {
|
pub extern "C" fn __umoddi3(a: u64, b: u64) -> u64 {
|
||||||
|
use core::mem;
|
||||||
|
|
||||||
let mut rem = unsafe { mem::uninitialized() };
|
let mut rem = unsafe { mem::uninitialized() };
|
||||||
__udivmoddi4(a, b, Some(&mut rem));
|
__udivmoddi4(a, b, Some(&mut rem));
|
||||||
rem
|
rem
|
||||||
|
Loading…
Reference in New Issue
Block a user