MCPcopy Create free account
hub / github.com/cockroachdb/apd / negateOverflowFlags

Method negateOverflowFlags

condition.go:155–166  ·  view source on GitHub ↗

negateOverflowFlags converts Overflow and SystemOverflow flags into their equivalent Underflows.

()

Source from the content-addressed store, hash-verified

153// negateOverflowFlags converts Overflow and SystemOverflow flags into their
154// equivalent Underflows.
155func (r Condition) negateOverflowFlags() Condition {
156 if r.Overflow() {
157 // Underflow always also means Subnormal. See GDA definition.
158 r |= Underflow | Subnormal
159 r &= ^Overflow
160 }
161 if r.SystemOverflow() {
162 r |= SystemUnderflow
163 r &= ^SystemOverflow
164 }
165 return r
166}

Callers 2

ExpMethod · 0.80
integerPowerMethod · 0.80

Calls 2

OverflowMethod · 0.95
SystemOverflowMethod · 0.95

Tested by

no test coverage detected