Skip to content

Commit

Permalink
Fixing clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tbetcke committed Dec 15, 2024
1 parent 0e12e18 commit b6e2020
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/approx_inv_accuracy.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Test the accuracy of the inverse sqrt
//! Test the accuracy of the inverse
const NSAMPLES: usize = 10000;
use rand::prelude::*;
Expand Down
2 changes: 2 additions & 0 deletions examples/approx_inv_sqrt_accuracy.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! Test the accuracy of the inverse sqrt
#[allow(dead_code)]
const NSAMPLES: usize = 10000;
use rand::prelude::*;
use rlst::SimdFor;
Expand Down Expand Up @@ -53,6 +54,7 @@ fn main() {
println!("Maximum relative error f64: {:.2E}", max_error_f64);
}

#[allow(dead_code)]
#[cfg(target_arch = "x86_64")]
fn main() {
fn rel_diff_sqrt_f32(a: f32, b: f32) -> f32 {
Expand Down

0 comments on commit b6e2020

Please sign in to comment.