flt_cmp.c 366 B

1234567891011121314151617181920
  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. /* $Id$ */
  6. #include "flt_misc.h"
  7. int
  8. flt_cmp(e1, e2)
  9. register flt_arith *e1, *e2;
  10. {
  11. flt_arith x;
  12. flt_sub(e1, e2, &x);
  13. if (x.m1 == 0 && x.m2 == 0) return 0;
  14. if (x.flt_sign) return -1;
  15. return 1;
  16. }