aboutsummaryrefslogtreecommitdiff
path: root/S/atoulong.S
blob: 7d141edd0c8f3f607cd11c438c05419147b317af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.globl	atoulong
.type	atoulong,@function
atoulong:
	xorl	%edx,%edx
	xorl	%eax,%eax
	movl	4(%esp),%ecx
	jmp	.L1
.L2:
	imull	$10,%eax,%eax
	addl	%edx,%eax
	incl	%ecx
.L1:
	movb	(%ecx),%dl
	subb	$48,%dl
	cmpb	$9,%dl
	jbe	.L2
	ret