TorchLean API

FloatLib.Floats.Formats.DecimalInterchange.Sign.Runtime

Decimal sign operations #

IEEE 754-2019 §5.5.1 specifies bit operations, including on noncanonical representations. Bits.copy, negate, abs, and copySign preserve every bit below the sign. They neither quiet signaling NaNs nor report exceptions. The corresponding datum operations retain the quantum and NaN metadata.

Read the sign, including the sign of a zero or NaN.

Instances For

    Replace just the sign, without quieting a signaling NaN.

    Instances For

      Copy a complete datum. Stored-word copying is Bits.copy.

      Instances For

        Clear the sign, including on zeros and NaNs.

        Instances For

          Preserve the first datum except for the sign supplied by the second.

          Instances For

            Copy every bit, including noncanonical coefficient and special-value bits.

            Instances For

              Replace the stored sign while retaining all lower bits.

              Instances For

                Reverse the stored sign, preserving signaling NaNs and noncanonical encodings.

                Instances For

                  Clear the stored sign without canonicalizing the representation.

                  Instances For

                    Copy the second word's sign onto the otherwise unchanged first word.

                    Instances For