Playing SIMD

Iain Buclaw via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 26 06:05:28 PDT 2015


On 26 Oct 2015 1:40 pm, "Don via Digitalmars-d" <digitalmars-d at puremagic.com>
wrote:
>
> On Sunday, 25 October 2015 at 19:37:32 UTC, Iakh wrote:
>>
>> Here is my implementatation of SIMD find. Function returns index of
ubyte in static 16 byte array with unique values.
>
>
> [snip]
>
> You need to be very careful with doing benchmarks on tiny test cases,
they can be very misleading.
>
> Be aware that the speed of bsf() and bsr() is very very strongly
processor dependent. On some machines, it is utterly pathetic.

Some compilers are smart about uses of bsf and bsr.  :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20151026/72f8ba8c/attachment.html>


More information about the Digitalmars-d mailing list