File: ctz_amd64.s

package info (click to toggle)
golang-github-dgryski-go-bits 0.0~git20151205.0.86c69b3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 88 kB
  • ctags: 26
  • sloc: asm: 24; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 207 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
// +build amd64,!appengine

// func Ctz(x uint64) uint64
TEXT ·Ctz(SB),4,$0-16
        BSFQ  x+0(FP), AX
        JZ zero
        MOVQ AX, ret+8(FP)
        RET
zero:
        MOVQ $64, ret+8(FP)
        RET