Playing SIMD

anonymous via Digitalmars-d digitalmars-d at puremagic.com
Sun Oct 25 17:00:45 PDT 2015


On 25.10.2015 20:37, Iakh wrote:
> Full exaple with comparation of algorithms (SIMD, naive, binary search):
> http://dpaste.dzfl.pl/f3b8989841e3

 From there:
> void runBinary()
> {
>     static int i = 0;
>     naiveIndexOf(cast(ubyte)(i++/ArraySize + 1), arr);
> }

runBinary calls naiveIndexOf. You're not testing binaryIndexOf.


More information about the Digitalmars-d mailing list