We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pow
On 2022-05-31 @recmo wrote in c1a0c34 “Merge pull request #97 from recmo/isqrt”:
c1a0c34
Round negative to zero. Self::BITS ~< 2^52 and so fits f64.
#[must_use] pub fn approx_pow2(exp: f64) -> Option<Self> { const LN2_1P5: f64 = 0.584_962_500_721_156_2_f64; const EXP2_63: f64 = 9_223_372_036_854_775_808_f64; // FEATURE: Round negative to zero. #[allow(clippy::cast_precision_loss)] // Self::BITS ~< 2^52 and so fits f64. if exp < LN2_1P5 { if exp < -1.0 { return Some(Self::ZERO); } return Self::try_from(1).ok();
From src/pow.rs:101
src/pow.rs:101
The text was updated successfully, but these errors were encountered:
recmo
No branches or pull requests
On 2022-05-31 @recmo wrote in
c1a0c34
“Merge pull request #97 from recmo/isqrt”:Round negative to zero.
Self::BITS ~< 2^52 and so fits f64.
From
src/pow.rs:101
The text was updated successfully, but these errors were encountered: