Add a way to extend and shrink posits
libcg opened this issue · comments
Clément Guérin commented
It would be nice to be able to convert a {nbits=32, es=2} posit to {nbits=5, es=1}, for example.
Clément Guérin commented
Changing nbits should be trivial since it only requires bit shifting. Haven't considered es yet.
Clément Guérin commented
This is possible since commit a394dbe, using pack/unpack.