mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
x/tools/container/intsets: remove unused function
Found with honnef.co/go/tools/cmd/unused. Change-Id: I54dab41d423050b883a3af1f5bb8c5119e2b7100 Reviewed-on: https://go-review.googlesource.com/37602 Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
parent
36a48c93a6
commit
79902b439b
@ -4,16 +4,6 @@
|
||||
|
||||
package intsets
|
||||
|
||||
// From Hacker's Delight, fig 5.2.
|
||||
func popcountHD(x uint32) int {
|
||||
x -= (x >> 1) & 0x55555555
|
||||
x = (x & 0x33333333) + ((x >> 2) & 0x33333333)
|
||||
x = (x + (x >> 4)) & 0x0f0f0f0f
|
||||
x = x + (x >> 8)
|
||||
x = x + (x >> 16)
|
||||
return int(x & 0x0000003f)
|
||||
}
|
||||
|
||||
var a [1 << 8]byte
|
||||
|
||||
func init() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user