Comment by Traubenfuchs Comment by Traubenfuchs a year ago 3 replies Copy Link View on Hacker News If it's really fine, shouldn't the compiler optimize that if away?
Copy Link lifthrasiir a year ago Next Collapse Comment - Of course (there are several GCC attributes for that), but it is not really like that an additional check improves readability anyway. Reply View | 0 replies
Copy Link cozzyd a year ago Prev Collapse Comment - It has different performance characteristics Reply View | 1 reply Copy Link kadoban a year ago Parent Collapse Comment - Isn't that common with changes the optimizer does? What else is the point of it? Reply View | 0 replies
Copy Link kadoban a year ago Parent Collapse Comment - Isn't that common with changes the optimizer does? What else is the point of it? Reply View | 0 replies
Of course (there are several GCC attributes for that), but it is not really like that an additional check improves readability anyway.