On Thursday, 18 June 2015 at 13:20:04 UTC, John Colvin wrote:
On Thursday, 18 June 2015 at 10:27:58 UTC, Russel Winder wrote:[...]What you've forgotten is to turn on your optimisation flags. Even DMD gets the first 2 vaguely right with -O -inline -releasegdc is able to vectorize all 3 examples if you give it -OfastThe 3rd one does appear to be a bit slower in all cases, not sure why right now.
third one was faster for me on ldc, fwiw