2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
6 #include "mathffp_intern.h"
8 /*****************************************************************************
12 AROS_LH2(float, SPSub
,
15 AROS_LHA(float, fnum1
, D1
),
16 AROS_LHA(float, fnum2
, D0
),
19 struct LibHeader
*, MathBase
, 12, Mathffp
)
22 Subtract two floating point numbers
32 negative : result is negative
33 overflow : result is out of range
42 fnum = fnum2 + (-fnum1).
44 *****************************************************************************/
48 float r
= SPAdd(fnum2
, fnum1
^ FFPSign_Mask
);
49 D(kprintf("SPSub(%x - %x) = %x\n", fnum2
, fnum1
, r
));