revert between 56095 -> 55830 in arch
[AROS.git] / workbench / libs / mathieeedoubbas / ieeedpsub.c
blob0072afd0f1131af872e4c11063a880e7d051e0ad
1 /*
2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "mathieeedoubbas_intern.h"
8 /*****************************************************************************
10 NAME */
12 AROS_LHQUAD2(double, IEEEDPSub,
14 /* SYNOPSIS */
15 AROS_LHAQUAD(double, y, D0, D1),
16 AROS_LHAQUAD(double, z, D2, D3),
18 /* LOCATION */
19 struct MathIeeeDoubBasBase *, MathIeeeDoubBasBase, 12, MathIeeeDoubBas)
21 /* FUNCTION
22 Subtracts two IEEE double precision floating point numbers.
24 INPUTS
25 y - minuend.
26 z - subtrahend.
28 RESULT
29 x - difference.
31 NOTES
33 EXAMPLE
35 BUGS
37 SEE ALSO
38 IEEEDPNeg()
40 INTERNALS
42 *****************************************************************************/
44 AROS_LIBFUNC_INIT
46 QUAD * Qz = (QUAD *)&z;
48 XOR64QC(*Qz, IEEEDPSign_Mask_Hi, IEEEDPSign_Mask_Lo );
49 return IEEEDPAdd(y,z);
51 AROS_LIBFUNC_EXIT