Correctness of packed field access #
The packed-field laws describe how Model.ofFields decodes. The results are uniform in the
format and isolate the bit-layout reasoning needed by rounding, status-flag, and interval
proofs.
The sign bit is set exactly for storage words in the upper half of the format's code space.
The sign bit is clear exactly for storage words in the lower half of the format's code space.
Field classification #
Classification of an in-range explicit field tuple as zero.
Classification of an in-range explicit field tuple as finite.
An IEEE field tuple is finite whenever its exponent is not the reserved all-ones pattern.
ofFields truncates the supplied fraction to the descriptor width, so this specialization needs
no separate fraction bound.
The maximum-magnitude finite encoding is finite for either sign.
The largest positive finite encoding is finite.
A normal field pair at or below the descriptor's greatest finite field pair is finite.
Finite field decoding #
Decode in-range fields known to denote a finite value.
The exact exponent uses the bias declared by the complete format descriptor. This includes all-ones exponent fields when the selected non-IEEE encoding treats them as finite.
An in-range nonzero fraction at biased exponent zero decodes as a subnormal.
In-range nonexceptional fields with nonzero biased exponent decode as a normal value.
Closed-form real semantics #
Closed-form real value of an explicitly packed subnormal.
Closed-form real value of explicitly packed normal fields.
Closed-form real value of finite normal fields, including all-ones exponent fields when the selected encoding treats them as finite.