Merge commit 'f2cdd4a78d
' into sync_cg_clif-2022-04-22
This commit is contained in:
commit
b70b01b112
21 changed files with 189 additions and 142 deletions
|
@ -1,7 +1,8 @@
|
|||
#![feature(core_intrinsics, generators, generator_trait, is_sorted)]
|
||||
#![feature(core_intrinsics, generators, generator_trait, is_sorted, bench_black_box)]
|
||||
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
use std::arch::x86_64::*;
|
||||
use std::hint::black_box;
|
||||
use std::io::Write;
|
||||
use std::ops::Generator;
|
||||
|
||||
|
@ -86,6 +87,9 @@ fn main() {
|
|||
assert_eq!(houndred_f64 as i128, 100);
|
||||
assert_eq!(1u128.rotate_left(2), 4);
|
||||
|
||||
assert_eq!(black_box(f32::NAN) as i128, 0);
|
||||
assert_eq!(black_box(f32::NAN) as u128, 0);
|
||||
|
||||
// Test signed 128bit comparing
|
||||
let max = usize::MAX as i128;
|
||||
if 100i128 < 0i128 || 100i128 > max {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue