3 ms·
And even if you didn't, I wonder what the motivation is for trying to do it all in one loop. sum(byteVals != -128) + sum(intVals) should vectorize more ni
by tom_mellior 6y ago
And even if you didn't, I wonder what the motivation is for trying to do it all in one loop.
sum(byteVals != -128) + sum(intVals)
should vectorize more nicely and be at least as cache friendly.