libcg / bfp

Beyond Floating Point - Posit C/C++ implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a way to extend and shrink posits

libcg opened this issue · comments

It would be nice to be able to convert a {nbits=32, es=2} posit to {nbits=5, es=1}, for example.

Changing nbits should be trivial since it only requires bit shifting. Haven't considered es yet.

This is possible since commit a394dbe, using pack/unpack.