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".
9 COMPARE DOUBLES (CMF 8)
19 #define SIGN(x) (((x) < 0) ? -1 : 1)
21 * return ((d1 < d2) ? 1 : (d1 > d2) ? -1 : 0))
27 #if FL_MSL_AT_LOW_ADDRESS
28 l1
= get4((char *)&d1
);
29 l2
= get4((char *)&d2
);
31 l1
= get4(((char *)&d1
+4));
32 l2
= get4(((char *)&d2
+4));
39 if (l1
!= 0 || l2
!= 0) {
40 return ((sign1
> 0) ? -1 : 1);
43 if (l1
!= l2
) { /* we can decide here */
44 rv
= l1
< l2
? 1 : -1;
46 else { /* decide in 2nd half */
48 #if FL_MSL_AT_LOW_ADDRESS
49 u1
= get4(((char *)&d1
+ 4));
50 u2
= get4(((char *)&d2
+ 4));
52 u1
= get4((char *)&d1
);
53 u2
= get4((char *)&d2
);