This bloq enables us to safely convert between QUInt and QFxp of compatible size and to divide integers by powers of two in the process.
If the bitsize of the output is equal to the input, then Cast could be used as an unsafe alternative. This bloq is a little safer and supports using a larger register to store the divided the value.
This bloq enables us to safely convert between
QUInt
andQFxp
of compatible size and to divide integers by powers of two in the process.If the bitsize of the output is equal to the input, then
Cast
could be used as an unsafe alternative. This bloq is a little safer and supports using a larger register to store the divided the value.