2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
6 #include "mathffp_intern.h"
8 /*****************************************************************************
12 AROS_LH1(float, SPNeg
,
15 AROS_LHA(float, fnum1
, D0
),
18 struct LibHeader
*, MathBase
, 10, Mathffp
)
30 negative : result is negative
37 Return zero if fnum == 0.
38 Otherwise flip the sign-bit.
40 *****************************************************************************/
44 D(kprintf("SPNeg(%08x)\n", fnum1
));
47 SetSR( Zero_Bit
, Zero_Bit
| Negative_Bit
| Overflow_Bit
);
52 fnum1
^= FFPSign_Mask
;
56 /* result is negative */
57 SetSR(Negative_Bit
, Zero_Bit
| Negative_Bit
| Overflow_Bit
);
61 /* result is positive */
62 SetSR(0, Zero_Bit
| Overflow_Bit
| Negative_Bit
);