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

Nigel Delaney nigel.delaney at outlook.com
Tue Sep 10 23:08:15 UTC 2013


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.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20130910/83cf9e76/attachment.html>


More information about the Mono-list mailing list