Merge pull request #529 from knickish/compile_warning_cleanup
This commit is contained in:
commit
4a84991713
3 changed files with 4 additions and 2 deletions
|
|
@ -4,6 +4,7 @@
|
|||
// to link due to the missing intrinsic (symbol).
|
||||
|
||||
#![allow(unused_features)]
|
||||
#![allow(stable_features)] // bench_black_box feature is stable, leaving for backcompat
|
||||
#![cfg_attr(thumb, no_main)]
|
||||
#![deny(dead_code)]
|
||||
#![feature(bench_black_box)]
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
/// These are hand-optimized bit twiddling code,
|
||||
/// which unfortunately isn't the easiest kind of code to read.
|
||||
///
|
||||
/// The algorithm is explained here: https://blog.m-ou.se/floats/
|
||||
/// The algorithm is explained here: <https://blog.m-ou.se/floats/>
|
||||
mod int_to_float {
|
||||
pub fn u32_to_f32_bits(i: u32) -> u32 {
|
||||
if i == 0 {
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ macro_rules! public_test_dep {
|
|||
///
|
||||
/// This macro is structured to be invoked with a bunch of functions that looks
|
||||
/// like:
|
||||
///
|
||||
/// ```ignore
|
||||
/// intrinsics! {
|
||||
/// pub extern "C" fn foo(a: i32) -> u32 {
|
||||
/// // ...
|
||||
|
|
@ -44,6 +44,7 @@ macro_rules! public_test_dep {
|
|||
/// // ...
|
||||
/// }
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
/// Each function is defined in a manner that looks like a normal Rust function.
|
||||
/// The macro then accepts a few nonstandard attributes that can decorate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue