Y
Hacker News
new
|
ask
|
show
|
jobs
by
tom_mellior
1932 days 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.