scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

_cerrno.s (123B)


      1 	.file	"_cerrno.s"
      2 	.globl	_cerrno
      3 
      4 _cerrno:
      5 	cmpq	$0,%rax
      6 	js	1f
      7 	retq
      8 
      9 1:	neg	%rax
     10 	mov	%eax,(errno)
     11 	mov	$-1,%eax
     12 	retq