News for hackers. Stuff that matters.
Re:Why is this C++ code faster than my hand-written assembly... by elcapitan on Tuesday August 22, 2017 @08:57AM (#15071872)
tldr: compiler replaces /2 with a shift.
Re:Why is this C++ code faster than my hand-written assembly... by jandrese on Tuesday August 22, 2017 @09:09AM (#15071969)
Which makes it sound like the author shouldn't have been trying to hand assemble for speed. Or maybe treat it as a learning exercise.
Re:Why is this C++ code faster than my hand-written assembly... by michaelt on Tuesday August 22, 2017 @09:24AM (#15072101)

  Or maybe treat it as a learning exercise.
Is there any other reason to complete a Project Euler question?
Re:Why is this C++ code faster than my hand-written assembly... by empath75 on Tuesday August 22, 2017 @09:26AM (#15072119)
i think it was a learning exercise. It's not like there's any productive use for testing the collatz conjecture.
Re:Why is this C++ code faster than my hand-written assembly... by iplaw on Tuesday August 22, 2017 @09:01AM (#15071906)
Which is a common knowledge substitution that the OP overlooked.