scc

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

_cerrno.s (121B)


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