2 ms·
Interesting, thanks. BTW, I fixed like that: uint64_t mask = -( missingLanes < 8 ); mask >>= missingLanes * 8; I only care about the AMD64 because the
by Const-me 3y ago
Interesting, thanks. BTW, I fixed like that:
uint64_t mask = -( missingLanes < 8 );
mask >>= missingLanes * 8;
I only care about the AMD64 because the surrounding code uses AVX2 intrinsics, i.e. my new version is hopefully good enough. I’ve tried conditional operator to not rely on these details, however VC++ failed to generate fast code from them. It emit branches, and that code is kinda performance critical.