Registered Member
|
Hi guys,
I'm wondering if one could optimize this line of code using SSE:
Is it be possible to use SSE4's PMINUW instruction to compute this operation? If so, one could add setCwiseMax()/setCwiseMin() operations to Eigen. Cheers, Manuel |
Registered Member
|
Well, it just came to my mind that you could do something like
According to the implementation this would use std::min() for scalar operations and _mm_min_ps() packet operations -- nice! Cheers, Manuel |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient