How to get only the whole part of a float? So, I have a float array: x [4] = {5.0, 13.0, 25.0, 41.0}; I put it in xmm0 and then I do it sqrt. I need another command to help accept only the inside of this sqrt. For example, sqrt out of 5 will be 2.236068, and I need only 2.0 in the answer
Code:
__asm
{
movups xmm0, x
sqrtps xmm0, xmm0
//here need some command
movups x, xmm0
}
source
share