minix/lib/libc/arch/i386/int64/add64.S
2010-03-03 14:27:30 +00:00

18 lines
363 B
ArmAsm

/* add64() - 64 bit addition Author: Kees J. Bot */
/* 7 Dec 1995 */
.text
.globl _add64
_add64:
/* u64_t add64(u64_t i, u64_t j); */
movl 4(%esp), %eax
movl 8(%esp), %edx
addl 16(%esp), %edx
movl %edx, (%eax)
movl 12(%esp), %edx
adcl 20(%esp), %edx
movl %edx, 4(%eax)
ret
/* */
/* $PchId: add64.ack.s,v 1.2 1996/04/11 18:59:57 philip Exp $ */