shithub: scc

ref: 2e11e73feafef4fd29df8e3a46e767da3b9a1877
dir: /src/libc/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	w0,[x1]
	mov	x0,#-1
	ret