shithub: scc

ref: 61d8ab34d1ccd7ffdc3fd0e3fe73bf1a87bf0af6
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