Open andrey-shigantsov opened 4 years ago
Hello! Thanks for this cool crate!
When I try use bin::Fix<P31, N31> ratio paniced at 'attempt to multiply with overflow'.
How can i get around this? (I need i32 for cmsis dsp lib)
I would like looking code sample which crashes
Fix<P31, N31>::from(0.25)
Overflow occurs for let ratio = 2_i31.pow(31). (ratio = i32::MAX + 1)
let ratio = 2_i31.pow(31)
ratio = i32::MAX + 1
Hello! Thanks for this cool crate!
When I try use bin::Fix<P31, N31> ratio paniced at 'attempt to multiply with overflow'.
How can i get around this? (I need i32 for cmsis dsp lib)