mlf8.c 455 B

12345678910111213141516171819202122232425
  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. /*
  7. * Multiply Double Precision Float (MLF 8)
  8. */
  9. #include "FP_types.h"
  10. void
  11. mlf8(s2,s1)
  12. DOUBLE s1,s2;
  13. {
  14. EXTEND e1,e2;
  15. extend(&s1.d[0],&e1,sizeof(DOUBLE));
  16. extend(&s2.d[0],&e2,sizeof(DOUBLE));
  17. /* do a multiply */
  18. mul_ext(&e1,&e2);
  19. compact(&e1,&s1.d[0],sizeof(DOUBLE));
  20. }