shouldSetAsNaN determines whether setAsNaN should be called, given the provided values, where x is required and y is optional. It is split from setAsNaN to permit inlining of this function. gcassert:inline
(x, y *Decimal)
| 97 | // split from setAsNaN to permit inlining of this function. |
| 98 | //gcassert:inline |
| 99 | func (c *Context) shouldSetAsNaN(x, y *Decimal) bool { |
| 100 | return x.Form == NaNSignaling || x.Form == NaN || |
| 101 | (y != nil && (y.Form == NaNSignaling || y.Form == NaN)) |
| 102 | } |
| 103 | |
| 104 | // setAsNaN sets d to the first NaNSignaling, or otherwise first NaN, of |
| 105 | // x and y. x is required, y is optional. Expects one of the two inputs |
no outgoing calls
no test coverage detected