stdcpp/tsrc/Stdcpp_test/stdcxx/testengine/src/valcmp.cpp
branchRCL_3
changeset 57 2efc27d87e1c
parent 56 acd3cd4aaceb
equal deleted inserted replaced
56:acd3cd4aaceb 57:2efc27d87e1c
   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
       
   717     const IntT imin = _RWSTD_SHRT_MIN;
   714     const IntT imin = _RWSTD_SHRT_MIN;
   718     
       
   719 #elif _RWSTD_FLT_SIZE == _RWSTD_INT_SIZE
   715 #elif _RWSTD_FLT_SIZE == _RWSTD_INT_SIZE
   720     typedef int IntT;
   716     typedef int IntT;
   721     const IntT imin = _RWSTD_INT_MIN;
   717     const IntT imin = _RWSTD_INT_MIN;
   722 #elif _RWSTD_FLT_SIZE == _RWSTD_LONG_SIZE
   718 #elif _RWSTD_FLT_SIZE == _RWSTD_LONG_SIZE
   723     typedef long IntT;
   719     typedef long IntT;
   814 rw_ldblcmp (long double x, long double y)
   810 rw_ldblcmp (long double x, long double y)
   815 {
   811 {
   816     if (sizeof (long double) == sizeof (double))
   812     if (sizeof (long double) == sizeof (double))
   817         return rw_dblcmp (double (x), double (y));
   813         return rw_dblcmp (double (x), double (y));
   818 
   814 
   819     #ifdef __ARMCC__
       
   820     #pragma diag_suppress 111
       
   821     #endif
       
   822     if (x == y)
   815     if (x == y)
   823         return 0;
   816         return 0;
   824     
       
   825     
       
   826 
   817 
   827     // FIXME: use integer math as in the functions above
   818     // FIXME: use integer math as in the functions above
   828 
   819 
   829     const long double diff = x - y;
   820     const long double diff = x - y;
   830 
   821 
   924 
   915 
   925 }
   916 }
   926 
   917 
   927 
   918 
   928  #endif
   919  #endif
       
   920  
       
   921 
       
   922