2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include "mathffp_intern.h"
8 /*****************************************************************************
15 AROS_LHA(float, fnum1
, D1
),
16 AROS_LHA(float, fnum2
, D0
),
19 struct LibHeader
*, MathBase
, 7, Mathffp
)
22 Compares two FFP numbers.
34 negative : fnum2 < fnum1
41 *****************************************************************************/
46 ULONG i1
= fnum1
, i2
= fnum2
, cc
;
48 D(kprintf("SPCmp(%08x,%08x)=", fnum1
, fnum2
));
50 /* Convert numbers into a format that can be compared as if integers */
51 fnum1
= i1
<< 24 | i1
>> 8;
54 fnum2
= i2
<< 24 | i2
>> 8;
63 else if (fnum1
== fnum2
)
74 D(kprintf("%ld\n", result
));
75 SetSR(cc
, Zero_Bit
| Negative_Bit
| Overflow_Bit
);