25 Mar
2017
25 Mar
'17
9:53 a.m.
On Sat, 25 Mar 2017 06:42:50 -0700, Henry Baker <hbaker1@pipeline.com> wrote
Were you able to figure out how the "regime" bits in posits work?
The "regime" term is a misnomer. The exponent uses a mixed unary-binary representation of integers with a fixed-sized binary tail (say, 3); 0 - 10 000 1 - 10 001 ... 7 - 10 111 8 - 110 000 9 - 110 001 ... 16 - 1110 000 ... 25 - 11110 001 ... 32 - 111110 000 ... -1 - 01 111 ... -8 - 01 000 -9 - 001 111 In other words, if the number starts with N 1s, its value is (N-1)*2^3 + tail, otherwise -N*2^3 + tail. Leo