Subversion Repositories planix.SVN

Rev

Rev 22 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22 Rev 26
Line 33... Line 33...
33
	MOVL	DX,CX
33
	MOVL	DX,CX
34
	LOOP	_addloop2
34
	LOOP	_addloop2
35
 
35
 
36
	/* sum[alen] = carry */
36
	/* sum[alen] = carry */
37
_addend:
37
_addend:
38
	JC	_addcarry
-
 
39
	MOVL	$0,(DI)(BP*4)
38
	ADCL	$0, CX
40
	RET
-
 
41
_addcarry:
-
 
42
	MOVL	$1,(DI)(BP*4)
39
	MOVL	CX, (DI)(BP*4)
43
	RET
40
	RET
44
 
41
 
45
	/* sum[blen:alen-1],carry = a[blen:alen-1] + 0 */
42
	/* sum[blen:alen-1],carry = a[blen:alen-1] + 0 */
46
_addloop2:
43
_addloop2:
47
	MOVL	(SI)(BP*4),AX
44
	MOVL	(SI)(BP*4),AX