File: trailing_zeros_19.go

package info (click to toggle)
golang-github-willf-bitset 1.1.3-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 180 kB
  • sloc: makefile: 127; asm: 95
file content (9 lines) | stat: -rw-r--r-- 132 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
// +build go1.9

package bitset

import "math/bits"

func trailingZeroes64(v uint64) uint {
	return uint(bits.TrailingZeros64(v))
}