File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 44// to link due to the missing intrinsic (symbol).
55
66#![ allow( unused_features) ]
7+ #![ allow( stable_features) ] // bench_black_box feature is stable, leaving for backcompat
78#![ cfg_attr( thumb, no_main) ]
89#![ deny( dead_code) ]
910#![ feature( bench_black_box) ]
Original file line number Diff line number Diff line change 33/// These are hand-optimized bit twiddling code,
44/// which unfortunately isn't the easiest kind of code to read.
55///
6- /// The algorithm is explained here: https://blog.m-ou.se/floats/
6+ /// The algorithm is explained here: < https://blog.m-ou.se/floats/>
77mod int_to_float {
88 pub fn u32_to_f32_bits ( i : u32 ) -> u32 {
99 if i == 0 {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ macro_rules! public_test_dep {
3333///
3434/// This macro is structured to be invoked with a bunch of functions that looks
3535/// like:
36- ///
36+ /// ```ignore
3737/// intrinsics! {
3838/// pub extern "C" fn foo(a: i32) -> u32 {
3939/// // ...
@@ -44,6 +44,7 @@ macro_rules! public_test_dep {
4444/// // ...
4545/// }
4646/// }
47+ /// ```
4748///
4849/// Each function is defined in a manner that looks like a normal Rust function.
4950/// The macro then accepts a few nonstandard attributes that can decorate
You can’t perform that action at this time.
0 commit comments