shithub: scc

ref: c7b8a9f86b3e6aecc69448a6aa724938a57c9de2
dir: /lib/c/arch/arm64/linux/_cerrno.s/

View raw version
	.file	"_cerrno.s"
	.globl	_cerrno

_cerrno:
	cmp	x0,#0
	b.lt	1f
	ret

1:	neg	x0,x0
	adr	x1,errno
	str	w1,[x0]
	mov	x0,#-1
	ret