Support no_std

This commit is contained in:
David Tolnay
2018-07-28 22:21:28 -07:00
parent bd3fad5507
commit 9eea435517
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -18,7 +18,7 @@
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied.
use std::ptr;
use core::ptr;
// Returns e == 0 ? 1 : ceil(log_2(5^e)).
pub fn pow5bits(e: i32) -> u32 {
+1 -1
View File
@@ -18,7 +18,7 @@
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied.
use std::{mem, ptr};
use core::{mem, ptr};
use common::*;
use d2s_full_table::*;
+1 -1
View File
@@ -18,7 +18,7 @@
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied.
use std::ptr;
use core::ptr;
use common::*;
use digit_table::*;
+1
View File
@@ -1,3 +1,4 @@
#![no_std]
#![cfg_attr(
feature = "cargo-clippy",
allow(