Pristine Ack-5.5
[Ack-5.5.git] / mach / proto / fp / dvf8.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: dvf8.c,v 1.7 1994/06/24 13:31:55 ceriel Exp $ */
7
8 /*
9         DIVIDE TWO FLOATS - DOUBLE Precision (DVF 8)
10 */
11
12 #include        "FP_types.h"
13
14 void
15 dvf8(s2,s1)
16 DOUBLE  s1,s2;
17 {
18         EXTEND  e1,e2;
19
20         extend(&s1.d[0],&e1,sizeof(DOUBLE));
21         extend(&s2.d[0],&e2,sizeof(DOUBLE));
22
23                 /* do a divide */
24         div_ext(&e1,&e2);
25         compact(&e1,&s1.d[0],sizeof(DOUBLE));
26 }