2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
6 #include "mathieeesingbas_intern.h"
8 /*****************************************************************************
12 AROS_LH1(float, IEEESPNeg
,
15 AROS_LHA(float, y
, D0
),
18 struct LibHeader
*, MathIeeeSingBasBase
, 10, Mathieeesingbas
)
21 Switch the sign of the given ieeesp number
30 negative : result is negative
38 Otherwise flip the sign-bit.
40 *****************************************************************************/
44 if (0 == y
|| 0x80000000 == y
)
46 SetSR( Zero_Bit
, Zero_Bit
| Negative_Bit
| Overflow_Bit
);
47 return (IEEESPSign_Mask
^ y
);
55 /* result is negative */
56 SetSR(Negative_Bit
, Zero_Bit
| Negative_Bit
| Overflow_Bit
);
60 /* result is positive */
61 SetSR(0, Zero_Bit
| Overflow_Bit
| Negative_Bit
);