4 ms·You can avoid the more expensive squaring in favour of addition if you keep a couple of extra counters.by meta_AU 9y agoYou can avoid the more expensive squaring in favour of addition if you keep a couple of extra counters.