New be SSE question: how to find index of minimum in __m128 holding 4 floats

Vincent Mayeski mayeski@gmail.com
Wed Apr 16 21:58:00 GMT 2008


Hi,

I'm looking for an sse based algorithm to find the index of a minimum in
a float array. I found an example of how to find just the actual minimum
here:

http://www.codeproject.com/KB/recipes/sseintro.aspx

The problem as I see it is that finding the index of the min within a
__m128 typed variable could be slow. Does anyone know if there is an
efficient way of doing it?

Vincent




More information about the Gcc-help mailing list