some fixes to accented characters
[tangerine.git] / rom / mathffp / spsub.c
blob325e10fb62a2b78123c799741108a1c604a21760
1 /*
2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "mathffp_intern.h"
8 /*
9 FUNCTION
10 Subtract two floating point numbers
11 fnum = fnum2 - fnum1;
13 RESULT
14 FFP number
16 Flags:
17 zero : result is zero
18 negative : result is negative
19 overflow : result is out of range
21 NOTES
23 EXAMPLE
25 BUGS
27 SEE ALSO
28 SPAdd()
30 INTERNALS
31 ALGORITHM:
32 fnum = fnum2 + (-fnum1).
34 HISTORY
37 AROS_LH2(float, SPSub,
38 AROS_LHA(float, fnum1, D0),
39 AROS_LHA(float, fnum2, D1),
40 struct LibHeader *, MathBase, 12, Mathffp
43 AROS_LIBFUNC_INIT
45 ULONG r = SPAdd(fnum2, fnum1 ^ FFPSign_Mask);
46 kprintf("%x - %x = %x\n",fnum2,fnum1,r);
47 return r;
49 AROS_LIBFUNC_EXIT