2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
6 #include "mathieeesingbas_intern.h"
10 Switch the sign of the given ieeesp number
17 negative : result is negative
32 Otherwise flip the sign-bit.
37 AROS_LH1(float, IEEESPNeg
,
38 AROS_LHA(float, y
, D0
),
39 struct LibHeader
*, MathIeeeSingBasBase
, 10, Mathieeesingbas
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
);