equal
deleted
inserted
replaced
709 _TEST_EXPORT int |
709 _TEST_EXPORT int |
710 rw_fltcmp (float x, float y) |
710 rw_fltcmp (float x, float y) |
711 { |
711 { |
712 #if _RWSTD_SHRT_SIZE == _RWSTD_INT_SIZE |
712 #if _RWSTD_SHRT_SIZE == _RWSTD_INT_SIZE |
713 typedef short IntT; |
713 typedef short IntT; |
|
714 #ifdef __ARMCC__ |
|
715 #pragma diag_suppress 68 |
|
716 #endif |
714 const IntT imin = _RWSTD_SHRT_MIN; |
717 const IntT imin = _RWSTD_SHRT_MIN; |
|
718 |
715 #elif _RWSTD_FLT_SIZE == _RWSTD_INT_SIZE |
719 #elif _RWSTD_FLT_SIZE == _RWSTD_INT_SIZE |
716 typedef int IntT; |
720 typedef int IntT; |
717 const IntT imin = _RWSTD_INT_MIN; |
721 const IntT imin = _RWSTD_INT_MIN; |
718 #elif _RWSTD_FLT_SIZE == _RWSTD_LONG_SIZE |
722 #elif _RWSTD_FLT_SIZE == _RWSTD_LONG_SIZE |
719 typedef long IntT; |
723 typedef long IntT; |
810 rw_ldblcmp (long double x, long double y) |
814 rw_ldblcmp (long double x, long double y) |
811 { |
815 { |
812 if (sizeof (long double) == sizeof (double)) |
816 if (sizeof (long double) == sizeof (double)) |
813 return rw_dblcmp (double (x), double (y)); |
817 return rw_dblcmp (double (x), double (y)); |
814 |
818 |
|
819 #ifdef __ARMCC__ |
|
820 #pragma diag_suppress 111 |
|
821 #endif |
815 if (x == y) |
822 if (x == y) |
816 return 0; |
823 return 0; |
|
824 |
|
825 |
817 |
826 |
818 // FIXME: use integer math as in the functions above |
827 // FIXME: use integer math as in the functions above |
819 |
828 |
820 const long double diff = x - y; |
829 const long double diff = x - y; |
821 |
830 |
915 |
924 |
916 } |
925 } |
917 |
926 |
918 |
927 |
919 #endif |
928 #endif |
920 |
|
921 |
|
922 |
|