Changeset 3212921 in mainline
- Timestamp:
- 2018-03-20T20:23:48Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 874381a
- Parents:
- 565aaff
- Location:
- uspace/lib/softfloat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/softfloat/comparison.c
r565aaff r3212921 637 637 } 638 638 639 int __aeabi_fcmple(float32_t a, float32_t b) 640 { 641 float32_u ua; 642 ua.val = a; 643 644 float32_u ub; 645 ub.val = b; 646 647 if ((is_float32_nan(ua.data)) || (is_float32_nan(ub.data))) { 648 // TODO: sigNaNs 649 return 0; 650 } 651 652 if (is_float32_eq(ua.data, ub.data)) 653 return 1; 654 655 if (is_float32_lt(ua.data, ub.data)) 656 return 1; 657 658 return 0; 659 } 660 639 661 int __aeabi_fcmpeq(float32_t a, float32_t b) 640 662 { -
uspace/lib/softfloat/comparison.h
r565aaff r3212921 91 91 extern int __aeabi_fcmplt(float32_t, float32_t); 92 92 extern int __aeabi_fcmpge(float32_t, float32_t); 93 extern int __aeabi_fcmple(float32_t, float32_t); 93 94 extern int __aeabi_fcmpeq(float32_t, float32_t); 94 95 #endif
Note:
See TracChangeset
for help on using the changeset viewer.