How can I convert C++ code to assembly using the SSE instruction set?

136 Views Asked by At

How can I convert the below code to assembly using the SSE instruction set?

for (int &elem : elems){
    int temp = 255 - elem > 0 ? 255 - elem : 0 ;
    results.push_back(temp);
}

I don't want to use intrinsic C++ functions.

I can't understand how to pass elems to assembly, and how to work on multiple values in parallel using the SSE instructions set.

0

There are 0 best solutions below