Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / libs / mathieeedoubbas / ieeedpsub.c
bloba19658a7f285e63d592a54d7d66701dc7359260e
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "mathieeedoubbas_intern.h"
8 /*
9 FUNCTION
10 Subtracts 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
37 AROS_LHQUAD2(double, IEEEDPSub,
38 AROS_LHAQUAD(double, y, D0, D1),
39 AROS_LHAQUAD(double, z, D2, D3),
40 struct MathIeeeDoubBasBase *, MathIeeeDoubBasBase, 12, MathIeeeDoubBas
43 AROS_LIBFUNC_INIT
45 QUAD * Qz = (QUAD *)&z;
47 XOR64QC(*Qz, IEEEDPSign_Mask_Hi, IEEEDPSign_Mask_Lo );
48 return IEEEDPAdd(y,z);
50 AROS_LIBFUNC_EXIT