diff options
Diffstat (limited to 'vendor/github.com/willf/bitset/trailing_zeros_19.go')
-rw-r--r-- | vendor/github.com/willf/bitset/trailing_zeros_19.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/github.com/willf/bitset/trailing_zeros_19.go b/vendor/github.com/willf/bitset/trailing_zeros_19.go new file mode 100644 index 0000000000..36a988e714 --- /dev/null +++ b/vendor/github.com/willf/bitset/trailing_zeros_19.go @@ -0,0 +1,9 @@ +// +build go1.9 + +package bitset + +import "math/bits" + +func trailingZeroes64(v uint64) uint { + return uint(bits.TrailingZeros64(v)) +} |