HackerTrans
TopNewTrendsCommentsPastAskShowJobs

saeta

no profile record

comments

saeta
·5 anni fa·discuss
While that's true for fixed-precision integer arithmetic, this doesn't hold true for floating point multiplication.
saeta
·6 anni fa·discuss
`+` is checked for overflow by default (can be overridden with compiler flags), and `&+` is overflowing addition and does auto-vectorize equivalently to C++.

I'd be quite interested in seeing a benchmark comparing checked and unchecked addition that doesn't get auto-vectorized to understand the performance in practice for non-numerical computing.