Faster, avoids branches in a critical inner loop.