News for hackers. Stuff that matters.
Re:Reciprocal Approximation with 1 Subtraction by ryao on Wednesday January 01, 2025 @05:37PM (#42569896)
I see it now. I guess the GCC developers were wrong then.
Re:Reciprocal Approximation with 1 Subtraction by gpderetta on Wednesday January 01, 2025 @05:41PM (#42569910)
I think it is a bit more complicated. The rule, together with the aliasing rule, if taken a face value, means you could do unrestricted aliasing as long as you cast to an union type on access. I believe that's the interpretation the GCC Devs reject as is makes TBAA ineffective.

Instead they interpret it narrowly to only allow punning through objects that are actual unions (as described in the GCC docs).

Unsurprisingly the standard is kind of a mess.