Standard operations for configured binary values #
These definitions expose the descriptor-generic operation model on the ordinary
ExecFloat.Binary carrier. They add no arithmetic implementation: each one calls the
descriptor-model operation through the storage codec, and Configured.Operations.Proof shows
that packing changes neither values, flags, nor ternary values.
IEEE remainder, using a nearest-even integral quotient for finite operands. With status := true
the result also carries the invalid indicator.
Instances For
Round to an integer and encode it in mode (nearest-even by default). With status := true the
result also reports fractional loss and, for a custom finite-only format that saturates, overflow.
Instances For
Multiply by 2^n and round in mode (nearest-even by default), IEEE 754 scaleB. With
status := true the result also carries the IEEE exception indicators and the ternary value.
Instances For
Exact integer-result IEEE logB, with no packing or exponent rounding.
Instances For
Leading binary exponent rounded to nearest-even into the configured format. binaryExponentInt
is the exact integer version. With status := true the result also carries the IEEE exception
indicators and the ternary value.
Instances For
The integer that rounds the exact value of a finite configured value in mode, toward zero by
default as a C or Python integer cast does, or none for a NaN or an infinity.
The integer is unbounded, so no finite value overflows, while roundToIntegral keeps the result
in the format.
Instances For
Copy the numerical sign of signSource onto magnitude.
Instances For
Absolute value under the configured encoding policy.
Instances For
Next representable configured value in the positive direction. With status := true the result
also carries the invalid indicator of a signaling NaN.
Instances For
Next representable configured value in the negative direction. With status := true the result
also carries the invalid indicator of a signaling NaN.
Instances For
IEEE-2008-style minNum, retaining the numeric operand against one quiet NaN.
Instances For
IEEE-2008-style maxNum, retaining the numeric operand against one quiet NaN.