Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / libs / mathieeedoubbas / ieeedpdiv.c
blobc420dac2f9eb505310c70a91b1f89e053b3c3b89
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "mathieeedoubbas_intern.h"
8 /*
9 FUNCTION
10 Divides two IEEE double precision numbers
12 RESULT
13 <code>
14 +1 : y > z
15 0 : y = z
16 -1 : y < z
18 Flags:
19 zero : y = z
20 negative : y < z
21 overflow : 0
22 </code>
24 NOTES
26 EXAMPLE
28 BUGS
30 SEE ALSO
32 INTERNALS
34 HISTORY
35 */
37 AROS_LHQUAD2(double, IEEEDPDiv,
38 AROS_LHAQUAD(double, y, D0, D1),
39 AROS_LHAQUAD(double, z, D2, D3),
40 struct MathIeeeDoubBasBase *, MathIeeeDoubBasBase, 14, MathIeeeDoubBas
43 AROS_LIBFUNC_INIT
45 union {
46 QUAD i;
47 double d;
48 } Res;
50 #if 0
51 QUAD * Qy = (QUAD *)&y;
52 QUAD * Qz = (QUAD *)&z;
53 #endif
55 Res.i = 0x0badc0de0badc0deULL;
56 return Res.d;
58 AROS_LIBFUNC_EXIT