News for hackers. Stuff that matters.
Re:With Undefined Behavior, Anything Is Possible by jancsika on Monday August 20, 2018 @02:27PM (#17802471)
> To answer the second part of your response, the correct way to do this yourself would be to memcpy the double and then inspect the result directly. Any compiler worth its salt will end up generating the assembly code you want (namely, no call to memcpy, just a couple of arithmetic shifts and masks).

What does a compiler "worth its salt" do with the memcpy at "-O0"?

Re:With Undefined Behavior, Anything Is Possible by saagarjha on Monday August 20, 2018 @03:00PM (#17802808)