[dead]
Re:Branchless Doom
by MaxBarraclough on Wednesday January 24, 2018 @05:21AM
(#16221654)
It's neat, and rather funny.
To see an unmodified real-world C program run on a real-world hardware architecture, completely branchless, is pretty damn neat.
The way it takes hours to render a frame of DOOM is hilarious.
I wonder if the compiler will be optimised in future.
> unmodified
You have to patch the source though...
Re:Branchless Doom
by MaxBarraclough on Thursday January 25, 2018 @04:55AM
(#16229855)
Oops, you're right! I thought it was only the build system that had to be adjusted.
About half of the code-changes are just to avoid alloca.
Re:Branchless Doom
by brokenmachine on Tuesday January 23, 2018 @11:21PM
(#16220292)
Some ask, "why". Others ask, "why not"...
I always liked that quote. In full:
I hear you say "Why?" Always "Why?" You see things; and you say "Why?" But I dream things that never were; and I say "Why not?"
"Science isn't about 'why', it's about 'why not'! Why don't you marry safe science if you love it so much!" --Cave Johnson
Re:Branchless Doom
by calebtroyer on Tuesday January 23, 2018 @11:35PM
(#16220340)
It says why right in the compiler FAQ — "I thought it would be funny"