From 256d8416bb507a18ae678b6b38c93b50fb741fd0 Mon Sep 17 00:00:00 2001 From: cscherrNT Date: Fri, 12 Jan 2024 12:20:16 +0000 Subject: [PATCH] Automatical formatting --- members/revsqrt/src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/members/revsqrt/src/main.rs b/members/revsqrt/src/main.rs index a4cee0b..c52f145 100644 --- a/members/revsqrt/src/main.rs +++ b/members/revsqrt/src/main.rs @@ -25,11 +25,13 @@ fn main() { let fr = fast_inverse_sqrt(n); let fdur = start.elapsed(); - println!("regular\tinverse square root of {n}: {rr}\t(took {rdur:?})\n\ + println!( + "regular\tinverse square root of {n}: {rr}\t(took {rdur:?})\n\ fast \tinverse square root of {n}: {fr}\t(took {fdur:?})\n\n\ The timings are not accurate. Benchmarks show ~170 ps for each.\n\ The CPU has a instruction for sqrt, and 1/x is simple division, so\n\ - an algorithm like fast inverse square root can hardly be faster."); + an algorithm like fast inverse square root can hardly be faster." + ); } fn usage(invocation: &str) {