pass zero test
This commit is contained in:
parent
9266edbf92
commit
b656371142
@ -73,7 +73,7 @@ impl<const CHUNKS:usize,Frac:Unsigned> Fixed<CHUNKS,Frac>
|
|||||||
bits:BInt::<CHUNKS>::ONE.shl(((((CHUNKS as i32*64-Frac::I32-(self.bits.leading_zeros() as i32)+1)>>1)+Frac::I32) as u32).saturating_sub(1)),
|
bits:BInt::<CHUNKS>::ONE.shl(((((CHUNKS as i32*64-Frac::I32-(self.bits.leading_zeros() as i32)+1)>>1)+Frac::I32) as u32).saturating_sub(1)),
|
||||||
frac:PhantomData,
|
frac:PhantomData,
|
||||||
};
|
};
|
||||||
let mut result=pow2;
|
let mut result=Self::ZERO;
|
||||||
|
|
||||||
//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);
|
||||||
|
Loading…
Reference in New Issue
Block a user