mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: remove unused nlo function
Change-Id: I858d666d491f649f78581a43437408ffab33863b Reviewed-on: https://go-review.googlesource.com/c/go/+/229139 Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Michael Munday <mike.munday@ibm.com>
This commit is contained in:
parent
65c9b57566
commit
05db7de1c1
1 changed files with 0 additions and 5 deletions
|
|
@ -404,11 +404,6 @@ func oneBit16(x int16) bool { return x&(x-1) == 0 && x != 0 }
|
||||||
func oneBit32(x int32) bool { return x&(x-1) == 0 && x != 0 }
|
func oneBit32(x int32) bool { return x&(x-1) == 0 && x != 0 }
|
||||||
func oneBit64(x int64) bool { return x&(x-1) == 0 && x != 0 }
|
func oneBit64(x int64) bool { return x&(x-1) == 0 && x != 0 }
|
||||||
|
|
||||||
// nlo returns the number of leading ones.
|
|
||||||
func nlo(x int64) int64 {
|
|
||||||
return int64(nlz64(^x))
|
|
||||||
}
|
|
||||||
|
|
||||||
// nto returns the number of trailing ones.
|
// nto returns the number of trailing ones.
|
||||||
func nto(x int64) int64 {
|
func nto(x int64) int64 {
|
||||||
return ntz(^x)
|
return ntz(^x)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue