Switch the N=5 case of CWRS to also use a binary search.
This avoids the need for 64-bit addition and is faster on x86_64. It may be slower on some platforms so the direct solution is still available in the source.
Please register or sign in to comment