diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2019-08-12 15:54:24 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2019-08-12 15:54:24 +0200 |
| commit | 314141392a6f97471ec6fc46a7a10053dacf59e9 (patch) | |
| tree | 911a6cd2a1ffce84c91c0b4bff46369a7b4f68ca /example | |
| parent | 7633bb6902b7838731ad62649610023ca0d5f9dd (diff) | |
| download | rust-314141392a6f97471ec6fc46a7a10053dacf59e9.tar.gz rust-314141392a6f97471ec6fc46a7a10053dacf59e9.zip | |
Implement log2{f32,f64} intrinsics
Diffstat (limited to 'example')
| -rw-r--r-- | example/std_example.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/example/std_example.rs b/example/std_example.rs index 1337c314766..c0f236055ab 100644 --- a/example/std_example.rs +++ b/example/std_example.rs @@ -36,6 +36,7 @@ fn main() { println!("{}", 2.3f32.min(1.0)); println!("{}", 2.3f32.max(1.0)); println!("{}", 2.3f32.powi(2)); + println!("{}", 2.3f32.log2()); assert_eq!(0b0000000000000000000000000010000010000000000000000000000000000000_0000000000100000000000000000000000001000000000000100000000000000u128.leading_zeros(), 26); assert_eq!(0b0000000000000000000000000010000000000000000000000000000000000000_0000000000000000000000000000000000001000000000000000000010000000u128.trailing_zeros(), 7); |
