2010-03-03 15:27:30 +01:00
|
|
|
/* add64u() - unsigned to 64 bit addition Author: Kees J. Bot */
|
|
|
|
/* 7 Dec 1995 */
|
2010-03-24 18:25:17 +01:00
|
|
|
#include <minix/compiler.h>
|
2010-08-17 18:44:07 +02:00
|
|
|
#include <machine/asm.h>
|
2010-03-24 18:25:17 +01:00
|
|
|
|
2010-08-17 18:44:07 +02:00
|
|
|
ENTRY(add64u)
|
2010-03-03 15:27:30 +01:00
|
|
|
/* u64_t add64u(u64_t i, unsigned j); */
|
2010-08-17 18:44:07 +02:00
|
|
|
ENTRY(add64ul)
|
2010-03-03 15:27:30 +01:00
|
|
|
/* u64_t add64ul(u64_t i, unsigned long j); */
|
|
|
|
movl 4(%esp), %eax
|
|
|
|
movl 8(%esp), %edx
|
|
|
|
addl 16(%esp), %edx
|
|
|
|
movl %edx, (%eax)
|
|
|
|
movl 12(%esp), %edx
|
|
|
|
adcl $0, %edx
|
|
|
|
movl %edx, 4(%eax)
|
2010-03-24 18:25:17 +01:00
|
|
|
ret BYTES_TO_POP_ON_STRUCT_RETURN
|
2010-03-03 15:27:30 +01:00
|
|
|
|
|
|
|
/* */
|
|
|
|
/* $PchId: add64u.ack.s,v 1.2 1996/04/11 18:59:57 philip Exp $ */
|