News for hackers. Stuff that matters.
Re:“What the Hardware Does” Is Not What Your Program Does: U... by rini17 on Sunday July 14, 2019 @06:45PM (#20436748)
This is considered a practical example?

Regardless, checking a register or hot value already in cache against a constant is free on modern CPUs.

Re:“What the Hardware Does” Is Not What Your Program Does: U... by mhh__ on Sunday July 14, 2019 @07:55PM (#20437063)
It's not a practical example but it's relatively non trivial e.g. some otherwise good compilers can't figure that one out.