negate method

SignMagnitudeValue negate()

Negate operation for SignMagnitudeValue.

Implementation

SignMagnitudeValue negate() => clonePopulator().populate(
    sign: sign == LogicValue.one ? LogicValue.zero : LogicValue.one,
    magnitude: magnitude);