2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
6 #include "mathffp_intern.h"
17 negative : result is negative
31 Return zero if fnum == 0.
32 Otherwise flip the sign-bit.
37 AROS_LH1(float, SPNeg
,
38 AROS_LHA(float, fnum1
, D0
),
39 struct LibHeader
*, MathBase
, 10, Mathffp
46 SetSR( Zero_Bit
, Zero_Bit
| Negative_Bit
| Overflow_Bit
);
51 fnum1
^= FFPSign_Mask
;
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
);