Where is the implementation of `dividedReportingOverflow`?

Ah, thanks, I made the classic mistake of searching for the name of the method I wanted to find. How silly of me.

Hmm, I don’t understand this. The very first thing the implementation does is check:

if _slowPath(other == (0 as ${Self})) {
  return (partialValue: self, overflow: true)
}

How on earth does the compiler not simply inline this result when it sees a known-constant 0 as the argument?

1 Like