Pristine Ack-5.5
[Ack-5.5.git] / modules / src / flt_arith / flt_cmp.c
1 /*
2   (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
3   See the copyright notice in the ACK home directory, in the file "Copyright".
4 */
5
6 /* $Id: flt_cmp.c,v 1.8 1994/06/24 11:15:46 ceriel Exp $ */
7
8 #include "flt_misc.h"
9
10 int
11 flt_cmp(e1, e2)
12         register flt_arith *e1, *e2;
13 {
14         flt_arith x;
15
16         flt_sub(e1, e2, &x);
17         if (x.m1 == 0 && x.m2 == 0) return 0;
18         if (x.flt_sign) return -1;
19         return 1;
20 }