ack/modules/src/flt_arith/ucmp.c

22 lines
373 B
C
Raw Normal View History

1989-07-10 11:17:19 +00:00
/*
(c) copyright 1989 by the Vrije Universiteit, Amsterdam, The Netherlands.
See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */
1991-02-19 13:53:04 +00:00
#include "flt_misc.h"
1989-07-10 11:17:19 +00:00
int
ucmp(l1,l2)
long l1,l2;
{
if (l1 == l2) return 0;
if (l2 >= 0) {
if (l1 > l2 || l1 < 0) return 1;
1989-07-10 11:17:19 +00:00
return -1;
}
if (l1 >= 0 || l1 < l2) return -1;
1989-07-10 11:17:19 +00:00
return 1;
}