mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 22:49:40 -08:00
14 lines
245 B
ArmAsm
14 lines
245 B
ArmAsm
// +build amd64,!appengine
|
|
|
|
// func Clz(x uint64) uint64
|
|
TEXT ·Clz(SB),4,$0-16
|
|
BSRQ x+0(FP), AX
|
|
JZ zero
|
|
SUBQ $63, AX
|
|
NEGQ AX
|
|
MOVQ AX, ret+8(FP)
|
|
RET
|
|
zero:
|
|
MOVQ $64, ret+8(FP)
|
|
RET
|