4 Comments
User's avatar
Yacob Cohen-Arazi's avatar

I think the whole Proxy object returns from the op[] is not going to help the compiler for vectorization/simd

Expand full comment
Taras Tsugrii's avatar

sorry, not sure what you're referring to - there is no `op[]` in any of the examples

Expand full comment
Yacob Cohen-Arazi's avatar

vector<bool> arr; ... arr[i] will return a proxy IIRC

Expand full comment
Taras Tsugrii's avatar

in case by `op[]` you've meant `arr[i]`, the proxy object does not really matter in optimized mode, since as you can see from the assembly I've included in the article, it's inlined but the logic responsible for selecting the right bits is obviously still there

Expand full comment