Revision 2657d0ff
b/fpu/softfloat-native.h | ||
---|---|---|
222 | 222 |
{ |
223 | 223 |
return a < b; |
224 | 224 |
} |
225 |
INLINE int float32_eq_signaling( float32 a, float32 b STATUS_PARAM)
|
|
225 |
INLINE int float32_eq( float32 a, float32 b STATUS_PARAM) |
|
226 | 226 |
{ |
227 | 227 |
return a <= b && a >= b; |
228 | 228 |
} |
... | ... | |
333 | 333 |
{ |
334 | 334 |
return a < b; |
335 | 335 |
} |
336 |
INLINE int float64_eq_signaling( float64 a, float64 b STATUS_PARAM)
|
|
336 |
INLINE int float64_eq( float64 a, float64 b STATUS_PARAM) |
|
337 | 337 |
{ |
338 | 338 |
return a <= b && a >= b; |
339 | 339 |
} |
... | ... | |
440 | 440 |
{ |
441 | 441 |
return a < b; |
442 | 442 |
} |
443 |
INLINE int floatx80_eq_signaling( floatx80 a, floatx80 b STATUS_PARAM)
|
|
443 |
INLINE int floatx80_eq( floatx80 a, floatx80 b STATUS_PARAM) |
|
444 | 444 |
{ |
445 | 445 |
return a <= b && a >= b; |
446 | 446 |
} |
b/fpu/softfloat.c | ||
---|---|---|
2419 | 2419 |
| according to the IEC/IEEE Standard for Binary Floating-Point Arithmetic. |
2420 | 2420 |
*----------------------------------------------------------------------------*/ |
2421 | 2421 |
|
2422 |
int float32_eq_signaling( float32 a, float32 b STATUS_PARAM )
|
|
2422 |
int float32_eq( float32 a, float32 b STATUS_PARAM ) |
|
2423 | 2423 |
{ |
2424 | 2424 |
uint32_t av, bv; |
2425 | 2425 |
a = float32_squash_input_denormal(a STATUS_VAR); |
... | ... | |
3686 | 3686 |
| according to the IEC/IEEE Standard for Binary Floating-Point Arithmetic. |
3687 | 3687 |
*----------------------------------------------------------------------------*/ |
3688 | 3688 |
|
3689 |
int float64_eq_signaling( float64 a, float64 b STATUS_PARAM )
|
|
3689 |
int float64_eq( float64 a, float64 b STATUS_PARAM ) |
|
3690 | 3690 |
{ |
3691 | 3691 |
uint64_t av, bv; |
3692 | 3692 |
a = float64_squash_input_denormal(a STATUS_VAR); |
... | ... | |
4706 | 4706 |
| according to the IEC/IEEE Standard for Binary Floating-Point Arithmetic. |
4707 | 4707 |
*----------------------------------------------------------------------------*/ |
4708 | 4708 |
|
4709 |
int floatx80_eq_signaling( floatx80 a, floatx80 b STATUS_PARAM )
|
|
4709 |
int floatx80_eq( floatx80 a, floatx80 b STATUS_PARAM ) |
|
4710 | 4710 |
{ |
4711 | 4711 |
|
4712 | 4712 |
if ( ( ( extractFloatx80Exp( a ) == 0x7FFF ) |
... | ... | |
5868 | 5868 |
| according to the IEC/IEEE Standard for Binary Floating-Point Arithmetic. |
5869 | 5869 |
*----------------------------------------------------------------------------*/ |
5870 | 5870 |
|
5871 |
int float128_eq_signaling( float128 a, float128 b STATUS_PARAM )
|
|
5871 |
int float128_eq( float128 a, float128 b STATUS_PARAM ) |
|
5872 | 5872 |
{ |
5873 | 5873 |
|
5874 | 5874 |
if ( ( ( extractFloat128Exp( a ) == 0x7FFF ) |
b/fpu/softfloat.h | ||
---|---|---|
324 | 324 |
int float32_le( float32, float32 STATUS_PARAM ); |
325 | 325 |
int float32_lt( float32, float32 STATUS_PARAM ); |
326 | 326 |
int float32_unordered( float32, float32 STATUS_PARAM ); |
327 |
int float32_eq_signaling( float32, float32 STATUS_PARAM );
|
|
327 |
int float32_eq( float32, float32 STATUS_PARAM ); |
|
328 | 328 |
int float32_le_quiet( float32, float32 STATUS_PARAM ); |
329 | 329 |
int float32_lt_quiet( float32, float32 STATUS_PARAM ); |
330 | 330 |
int float32_unordered_quiet( float32, float32 STATUS_PARAM ); |
... | ... | |
440 | 440 |
int float64_le( float64, float64 STATUS_PARAM ); |
441 | 441 |
int float64_lt( float64, float64 STATUS_PARAM ); |
442 | 442 |
int float64_unordered( float64, float64 STATUS_PARAM ); |
443 |
int float64_eq_signaling( float64, float64 STATUS_PARAM );
|
|
443 |
int float64_eq( float64, float64 STATUS_PARAM ); |
|
444 | 444 |
int float64_le_quiet( float64, float64 STATUS_PARAM ); |
445 | 445 |
int float64_lt_quiet( float64, float64 STATUS_PARAM ); |
446 | 446 |
int float64_unordered_quiet( float64, float64 STATUS_PARAM ); |
... | ... | |
543 | 543 |
int floatx80_le( floatx80, floatx80 STATUS_PARAM ); |
544 | 544 |
int floatx80_lt( floatx80, floatx80 STATUS_PARAM ); |
545 | 545 |
int floatx80_unordered( floatx80, floatx80 STATUS_PARAM ); |
546 |
int floatx80_eq_signaling( floatx80, floatx80 STATUS_PARAM );
|
|
546 |
int floatx80_eq( floatx80, floatx80 STATUS_PARAM ); |
|
547 | 547 |
int floatx80_le_quiet( floatx80, floatx80 STATUS_PARAM ); |
548 | 548 |
int floatx80_lt_quiet( floatx80, floatx80 STATUS_PARAM ); |
549 | 549 |
int floatx80_unordered_quiet( floatx80, floatx80 STATUS_PARAM ); |
... | ... | |
628 | 628 |
int float128_le( float128, float128 STATUS_PARAM ); |
629 | 629 |
int float128_lt( float128, float128 STATUS_PARAM ); |
630 | 630 |
int float128_unordered( float128, float128 STATUS_PARAM ); |
631 |
int float128_eq_signaling( float128, float128 STATUS_PARAM );
|
|
631 |
int float128_eq( float128, float128 STATUS_PARAM ); |
|
632 | 632 |
int float128_le_quiet( float128, float128 STATUS_PARAM ); |
633 | 633 |
int float128_lt_quiet( float128, float128 STATUS_PARAM ); |
634 | 634 |
int float128_unordered_quiet( float128, float128 STATUS_PARAM ); |
Also available in: Unified diff