From 0483c9eb27ccaf13b3b32f688599d7fe9ac4a927 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 29 Aug 2024 18:38:23 -0700 Subject: [PATCH] fast --- fixed_wide/src/fixed_wide_traits.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fixed_wide/src/fixed_wide_traits.rs b/fixed_wide/src/fixed_wide_traits.rs index 0c8e9d8..9d6ab27 100644 --- a/fixed_wide/src/fixed_wide_traits.rs +++ b/fixed_wide/src/fixed_wide_traits.rs @@ -75,7 +75,7 @@ impl Fixed //cheat to make the types match let wide_self=self.wide_mul(Fixed::::ONE); for shift in (0..=max_shift).rev(){ - let new_result=result|(Fixed::::EPSILON<::from_bits(BInt::from_bits(bnum::BUint::power_of_two(shift))); if new_result.wide_mul(new_result)<=wide_self{ result=new_result; }