Source File
select.go
Belonging Package
github.com/bits-and-blooms/bitset
package bitsetfunc select64( uint64, uint) uint {:= 0// Divide 64bit:= & 0xFFFFFFFF:= uint(popcount())if <= {= >> 32+= 32-=}:=// Divide 32bit= & 0xFFFF= uint(popcount())if <= {= >> 16+= 16-=}=// Divide 16bit= & 0xFF= uint(popcount())if <= {= >> 8+= 8-=}=// Lookup in final byte:= 0for ; < 8; ++ {-= uint(( >> ) & 1)if +1 == 0 {break}}return uint( + )}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |