This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Description
This is required to support fixed point formats with value ranges like [-0.5, 0.5), e.g.
Q-1.16 on 16 bits:
0x8000 -> -0.5 (32768/2^17)
0x7FFF -> 0.499984
Q-2.17 on 16 bits:
0x8000 -> -0.25 (32768/2^17)
0x7FFF -> 0.249992
For those formats number of integer bits needs to be set to negative value.