shithub: jxl

ref: f080353c96b53a7b881f470d8e8f6e1151fa6524
dir: /builtins.amd64.s/

View raw version
TEXT __builtin_clz(SB),1,$0
	BYTE $0x0F; BYTE $0xBD; BYTE $0xC5 /* BSRL RARG, AX */
	XORL $31, AX
	RET

TEXT __builtin_clzll(SB),1,$0
	BYTE $0x48; BYTE $0x0F; BYTE $0xBD; BYTE $0xC5 /* BSRQ RARG, AX */
	XORL $63, AX
	RET