2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
6 #include "mathieeedoubbas_intern.h"
10 Compare a IEEE double precision floting point number against zero.
20 negative : result is negative
34 Sign is negative: return -1
39 AROS_LHQUAD1(LONG
, IEEEDPTst
,
40 AROS_LHAQUAD(double, y
, D0
, D1
),
41 struct MathIeeeDoubBasBase
*, MathIeeeDoubBasBase
, 8, MathIeeeDoubBas
46 QUAD
* Qy
= (QUAD
*)&y
;
49 if (is_lessSC(*Qy
, 0x0, 0x0) /* y < 0 */)
51 SetSR(Negative_Bit
, Zero_Bit
| Overflow_Bit
| Negative_Bit
);
56 if (is_eqC(*Qy
, 0x0, 0x0) /* y == 0 */)
58 SetSR(Zero_Bit
, Zero_Bit
| Overflow_Bit
| Negative_Bit
);
62 /* fnum1 is positive */
63 SetSR(0, Zero_Bit
| Overflow_Bit
| Negative_Bit
);