3 ms·
Implementing Parallel Copy_If in C++
- mrdmnd 6y agoSomewhat relatedly, this reminds me of the instruction I learned about recently: the PEXT instruction. https://software.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/intrinsics/intrinsics-for-intel-advanced-vector-extensions-2/intrinsics-for-operations-to-manipulate-integer-data-at-bit-granularity/pext-u32-64.html https://software.intel.com/content/www/us/en/develop/documen...
- renox 6y agoThe second step isn't easy to parallelize while avoiding two CPUs writing to the same cache line..