2 ms·
I'd wager also yes. > As long as it isn't a bottleneck in common software, a few shifts/masks/add/integer multiply or whatever, are very quick on modern cpus.
by ilyt 3y ago
I'd wager also yes.
> As long as it isn't a bottleneck in common software, a few shifts/masks/add/integer multiply or whatever, are very quick on modern cpus. Often 1-cycle. If not >1 such instructions in parallel per clock.
one instruction takes less cache space than multiple instructions. At worst it might mean fitting vs not fitting hot loop in cache.