Configured posit conversions for fixed-width signed integers #
These adapters preserve the Section 6.4 MSB-only sentinel through any lawful posit model codec. The integer width is independent of the posit width. Integer-to-posit conversion rounds the exact signed value once using Section 4.1; posit-to-integer conversion uses nearest integer with ties to even, checking the signed range after rounding.
The signed minimum shares the sentinel word. These explicit adapters therefore differ from
generic numerical conversion through an ordinary FixedInt decoder, which treats that word as
a finite integer.
Convert a signed integer to a configured posit, reserving the MSB-only input for NaR.
Instances For
Convert a configured posit to a signed integer with nearest-even rounding. NaR and a rounded value outside the signed range produce the MSB-only sentinel.