[Mono-list] Mono.Simd - Flow Control (?)

Rodrigo Kumpera kumpera at gmail.com
Mon Sep 16 18:57:32 UTC 2013


You use a wide compare followed by an extract mask step.


On Tue, Sep 10, 2013 at 7:08 PM, Nigel Delaney <nigel.delaney at outlook.com>wrote:

> Hi All,****
>
> ** **
>
> Does anyone how to do control flow with the Mono.Simd namespace.  For
> example, break if all elements in a vector match some condition relative to
> another vector.  e.g.****
>
> ** **
>
> var x= Vector2d(1,2);****
>
> var y=Vector2d(3,4):****
>
> if(y<x)//compare less than, true for both???****
>
> Do something…****
>
> ** **
>
> I gather SSE has a movmskps instruction that is useful, but am not sure
> if this is an available operation from mono.****
>
> ** **
>
> -Nigel****
>
> ** **
>
> PS For context I am working on this toy problem for the language shootout (
> http://evolvedmicrobe.com/blogs/?p=112), but generally need to know if
> this is possible.****
>
> ** **
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130916/f369dc62/attachment.html>


More information about the Mono-list mailing list