3 ms·
Thinking a bit more about this, you could eliminate the conversion and do sum = popcount(mag) - 2*popcount(mag & sgn)
by rep_lodsb 3y ago
Thinking a bit more about this, you could eliminate the conversion and do
sum = popcount(mag) - 2*popcount(mag & sgn)