Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lilllly
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
lilllly
4y ago
I can easily test if n+1 is < n with fwrapv. Without you have to do convoluted things like rearranging the expression to unnatural forms (move the addition to the right but invert to subtraction, etc), special case INT_MAX/INT_MIN,
2.
▲
by
lilllly
4y ago
We need a -fsane-c Then they can add a #pragma optimize(assumes=no-int-overflow, whatever, etc) to precisely add optimizations when needed and you 'know' its safe.