2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
6 #include "mathtrans_intern.h"
10 Calculate fnum2 raised to the fnum1 power (fnum2^fnum1)
13 Motorola fast floating point number
17 negative : result is negative
18 overflow : result is too big
33 AROS_LH2(float, SPPow
,
34 AROS_LHA(float, fnum1
, D1
),
35 AROS_LHA(float, fnum2
, D0
),
36 struct Library
*, MathTransBase
, 15, MathTrans
43 fnum2 ^ fnum1 = e^(fnum1 * ln fnum2)
47 Res
= SPLog( fnum2
& (FFPMantisse_Mask
+ FFPExponent_Mask
) );
48 Res
= SPMul(Res
, fnum1
);
53 SetSR(Zero_Bit
, Zero_Bit
| Negative_Bit
| Overflow_Bit
);
59 SetSR(Negative_Bit
, Zero_Bit
| Negative_Bit
| Overflow_Bit
);