mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-14 09:34:05 -08:00
12 lines
207 B
ArmAsm
12 lines
207 B
ArmAsm
|
// +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
|