2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
6 #include "mathieeesingbas_intern.h"
8 /*****************************************************************************
12 AROS_LH1(float, IEEESPAbs
,
15 AROS_LHA(float, y
, D0
),
18 struct LibHeader
*, MathIeeeSingBasBase
, 9, Mathieeesingbas
)
21 Calculate the absolute value of a given floating point number
30 negative : result is negative
37 *****************************************************************************/
43 /* value is 0 -> set the Zero Flag */
44 SetSR( Zero_Bit
, Zero_Bit
| Overflow_Bit
| Negative_Bit
);
48 /* set the sign-bit to zero */
49 y
&= (IEEESPMantisse_Mask
| IEEESPExponent_Mask
);
50 SetSR(0, Zero_Bit
| Overflow_Bit
| Negative_Bit
);