2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
6 #include "mathieeedoubbas_intern.h"
10 Calculate the absolute value of the given IEEE double precision
31 set the sign-bit to zero
36 AROS_LHQUAD1(double, IEEEDPAbs
,
37 AROS_LHAQUAD(double, y
, D0
, D1
),
38 struct MathIeeeDoubBasBase
*, MathIeeeDoubBasBase
, 9, MathIeeeDoubBas
43 QUAD
* Qy
= (QUAD
*)&y
;
46 if (is_eqC((*Qy
),0,0))
48 /* value is 0 -> set the Zero Flag */
49 SetSR( Zero_Bit
, Zero_Bit
| Overflow_Bit
| Negative_Bit
);
53 /* set the sign-bit to zero */
54 /* (*Qy) &= (IEEEDPMantisse_Mask | IEEEDPExponent_Mask) */
58 (IEEEDPMantisse_Mask_Hi
| IEEEDPExponent_Mask_Hi
),
59 (IEEEDPMantisse_Mask_Lo
| IEEEDPExponent_Mask_Lo
)
61 SetSR(0, Zero_Bit
| Overflow_Bit
| Negative_Bit
);