runtime/internal/sys: better fallback algorithms for intrinsics
Use deBruijn sequences to count low-order zeros. Reorg bswap to not use &^, it takes another instruction on x86. Change-Id: I4a5ed9fd16ee6a279d88c067e8a2ba11de821156 Reviewed-on: https://go-review.googlesource.com/22084Reviewed-by: David Chase <drchase@google.com>
Showing
Please register or sign in to comment