News for hackers. Stuff that matters.
Re:Undefined behavior is often a thing for C programmers (2011) by sharpneli on Thursday September 03, 2020 @12:05PM (#24365451)
You are correct. I misremembered, it was just a proposal that was not taken into the spec.
Re:Undefined behavior is often a thing for C programmers (2011) by steerablesafe on Thursday September 03, 2020 @12:30PM (#24365723)
No, it's taken into the spec. It affects unsigned <-> signed conversions and maybe other things. Not integer overflow though.
Re:Undefined behavior is often a thing for C programmers (2011) by sharpneli on Thursday September 03, 2020 @04:43PM (#24368673)
Ah. Makes sense as that’s relatively cheap to emulate by just doing conversion when loading and storing from memory, but allows the use of HW even in case of ones complement implementation.