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.
[ Parent
| on HN ]
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?