2010-03-03 15:27:30 +01:00
|
|
|
/* cv64u() - 64 bit converted to unsigned Author: Kees J. Bot */
|
|
|
|
/* 7 Dec 1995 */
|
2010-08-17 18:44:07 +02:00
|
|
|
#include <machine/asm.h>
|
2010-03-03 15:27:30 +01:00
|
|
|
|
2010-08-17 18:44:07 +02:00
|
|
|
ENTRY(cv64u)
|
2010-03-03 15:27:30 +01:00
|
|
|
/* unsigned cv64u(u64_t i); */
|
2010-08-17 18:44:07 +02:00
|
|
|
ENTRY(cv64ul)
|
2010-03-03 15:27:30 +01:00
|
|
|
/* unsigned long cv64ul(u64_t i); */
|
|
|
|
movl 4(%esp), %eax
|
|
|
|
cmpl $0, 8(%esp) /* return ULONG_MAX if really big */
|
|
|
|
je 0f
|
|
|
|
movl $-1, %eax
|
|
|
|
0:
|
|
|
|
ret
|
|
|
|
|
|
|
|
/* */
|
|
|
|
/* $PchId: cv64u.ack.s,v 1.2 1996/04/11 18:59:57 philip Exp $ */
|