Re:Branch prediction: fundamentals every programmer need not...
by lostmsu on Sunday February 02, 2020 @03:57PM
(#22219363)
I love the explanation, but why did the guy suggest a complicated bit work instead of just doing sum += arr[i] > 128 ? arr[i] : 0 is beyond me.
[ Parent
| on HN ]
Re:Branch prediction: fundamentals every programmer need not...
by ncmncm on Sunday February 02, 2020 @04:14PM
(#22219468)
That would not evoke the behavior he wanted to call attention to.