SIMD support...

Manu turkeyman at gmail.com
Sun Jan 8 10:13:14 PST 2012


On 8 January 2012 19:56, Peter Alexander <peter.alexander.au at gmail.com>wrote:

> These don't make a lot of sense to return as value, e.g.
>
> __v128 a, b;
> a = simdop(movhlps, b); // ???
>
> movhlps moves the top 64-bits of b into the bottom 64-bits of a. Can't be
> done as an expression like this.
>

The conventional way is to write it like this:
  r = simdop(movhlps, a, b);

This allows you to chain the functions together, ie. passing the result as
an arg..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120108/3b2f2a67/attachment.html>


More information about the Digitalmars-d mailing list