1989-07-10 11:17:19 +00:00
|
|
|
/*
|
|
|
|
(c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
|
|
|
|
1994-06-24 11:31:16 +00:00
|
|
|
/* $Id$ */
|
1989-07-10 11:17:19 +00:00
|
|
|
|
1993-11-10 11:14:28 +00:00
|
|
|
#include "flt_misc.h"
|
1989-07-10 11:17:19 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
flt_cmp(e1, e2)
|
|
|
|
register flt_arith *e1, *e2;
|
|
|
|
{
|
1989-12-13 16:35:19 +00:00
|
|
|
flt_arith x;
|
1989-07-10 11:17:19 +00:00
|
|
|
|
1989-12-13 16:35:19 +00:00
|
|
|
flt_sub(e1, e2, &x);
|
|
|
|
if (x.m1 == 0 && x.m2 == 0) return 0;
|
|
|
|
if (x.flt_sign) return -1;
|
|
|
|
return 1;
|
1989-07-10 11:17:19 +00:00
|
|
|
}
|