Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
formerly_proven
on Sept 24, 2020
|
parent
|
context
|
favorite
| on:
How expensive is integer-overflow trapping in C++?
I'm trying to say that integer overflow is architecture-specific, so it _should_ have been standardized as implementation defined.
rocqua
on Sept 24, 2020
[–]
You probably know this, but by making it UB, compilers don't need to have the same behavior on every case of integer overflow. This allows compilers to apply much more optimizations.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: