This commit is contained in:
Quaternions 2024-08-29 15:35:33 -07:00
parent 8d5fc1ae48
commit 6335b1da47

View File

@ -78,6 +78,7 @@ impl<const CHUNKS:usize,Frac:Unsigned> Fixed<CHUNKS,Frac>
//cheat to make the types match //cheat to make the types match
let wide_self=self.wide_mul(Fixed::<CHUNKS,Frac>::ONE); let wide_self=self.wide_mul(Fixed::<CHUNKS,Frac>::ONE);
loop{ loop{
//TODO: closed loop over bit shift exponent rather than pow2
if pow2==Self::ZERO{ if pow2==Self::ZERO{
break result; break result;
} }