This a follow-up question to this one. Now I would like to convert in the opposite direction float –> unsigned int.
What is the optimal and accurate vector sequence of the following scalar operation?
float x = ...
unsigned int res = (unsigned int)x;
This is based on an example from the old but useful Apple AltiVec-SSE migration documentation which unfortunately is now no longer available at http://developer.apple.com: