resolveSubNormalAsZero method
Convert the current FloatingPoint to a new FloatingPoint but with the
mantissa resolved if not isNormal and subNormalAsZero is true
.
Implementation
FloatingPoint resolveSubNormalAsZero() {
if (subNormalAsZero) {
return clone()
..gets(mux(
isNormal,
this,
FloatingPoint.zero(
exponentWidth: exponent.width,
mantissaWidth: mantissa.width,
explicitJBit: explicitJBit,
subNormalAsZero: subNormalAsZero)));
} else {
return this;
}
}