Changeset 96214 in vbox
- Timestamp:
- Aug 15, 2022 9:46:25 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 153025
- Location:
- trunk/src/VBox/Runtime/common/math
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/math/llround.cpp
r96196 r96214 33 33 #include <iprt/nocrt/math.h> 34 34 #include <iprt/nocrt/limits.h> 35 #include <iprt/nocrt/fenv.h> 35 36 36 37 … … 43 44 if (rd >= (double)LLONG_MIN && rd <= (double)LLONG_MAX) 44 45 return (long long)rd; 45 /** @todo RT_NOCRT(feraiseexcept)(FE_INVALID); */46 RT_NOCRT(feraiseexcept)(FE_INVALID); 46 47 return rd > 0.0 ? LLONG_MAX : LLONG_MIN; 47 48 } 48 /** @todo RT_NOCRT(feraiseexcept)(FE_INVALID); */49 RT_NOCRT(feraiseexcept)(FE_INVALID); 49 50 if (RT_NOCRT(isinf)(rd) && rd < 0.0) 50 51 return LLONG_MIN; -
trunk/src/VBox/Runtime/common/math/llroundf.cpp
r96196 r96214 33 33 #include <iprt/nocrt/math.h> 34 34 #include <iprt/nocrt/limits.h> 35 #include <iprt/nocrt/fenv.h> 35 36 36 37 … … 43 44 if (r32 >= (float)LLONG_MIN && r32 <= (float)LLONG_MAX) 44 45 return (long long)r32; 45 /** @todo RT_NOCRT(feraiseexcept)(FE_INVALID); */46 RT_NOCRT(feraiseexcept)(FE_INVALID); 46 47 return r32 > 0.0f ? LLONG_MAX : LLONG_MIN; 47 48 } 48 /** @todo RT_NOCRT(feraiseexcept)(FE_INVALID); */49 RT_NOCRT(feraiseexcept)(FE_INVALID); 49 50 if (RT_NOCRT(__isinff)(r32) && r32 < 0.0) 50 51 return LLONG_MIN; -
trunk/src/VBox/Runtime/common/math/llroundl.cpp
r96196 r96214 33 33 #include <iprt/nocrt/math.h> 34 34 #include <iprt/nocrt/limits.h> 35 #include <iprt/nocrt/fenv.h> 35 36 36 37 … … 43 44 if (lrd >= (long double)LLONG_MIN && lrd <= (long double)LLONG_MAX) 44 45 return (long long)lrd; 45 /** @todo RT_NOCRT(feraiseexcept)(FE_INVALID); */46 RT_NOCRT(feraiseexcept)(FE_INVALID); 46 47 return lrd > 0.0L ? LLONG_MAX : LLONG_MIN; 47 48 } 48 /** @todo RT_NOCRT(feraiseexcept)(FE_INVALID); */49 RT_NOCRT(feraiseexcept)(FE_INVALID); 49 50 if (RT_NOCRT(__isinfl)(lrd) && lrd < 0.0) 50 51 return LLONG_MIN; -
trunk/src/VBox/Runtime/common/math/lround.cpp
r96196 r96214 33 33 #include <iprt/nocrt/math.h> 34 34 #include <iprt/nocrt/limits.h> 35 #include <iprt/nocrt/fenv.h> 35 36 36 37 … … 43 44 if (rd >= (double)LONG_MIN && rd <= (double)LONG_MAX) 44 45 return (long)rd; 45 /** @todo RT_NOCRT(feraiseexcept)(FE_INVALID); */46 RT_NOCRT(feraiseexcept)(FE_INVALID); 46 47 return rd > 0.0 ? LONG_MAX : LONG_MIN; 47 48 } 48 /** @todo RT_NOCRT(feraiseexcept)(FE_INVALID); */49 RT_NOCRT(feraiseexcept)(FE_INVALID); 49 50 if (RT_NOCRT(isinf)(rd) && rd < 0.0) 50 51 return LONG_MIN; -
trunk/src/VBox/Runtime/common/math/lroundf.cpp
r96196 r96214 33 33 #include <iprt/nocrt/math.h> 34 34 #include <iprt/nocrt/limits.h> 35 #include <iprt/nocrt/fenv.h> 35 36 36 37 … … 43 44 if (r32 >= (float)LONG_MIN && r32 <= (float)LONG_MAX) 44 45 return (long)r32; 45 /** @todo RT_NOCRT(feraiseexcept)(FE_INVALID); */46 RT_NOCRT(feraiseexcept)(FE_INVALID); 46 47 return r32 > 0.0f ? LONG_MAX : LONG_MIN; 47 48 } 48 /** @todo RT_NOCRT(feraiseexcept)(FE_INVALID); */49 RT_NOCRT(feraiseexcept)(FE_INVALID); 49 50 if (RT_NOCRT(__isinff)(r32) && r32 < 0.0) 50 51 return LONG_MIN; -
trunk/src/VBox/Runtime/common/math/lroundl.cpp
r96196 r96214 33 33 #include <iprt/nocrt/math.h> 34 34 #include <iprt/nocrt/limits.h> 35 #include <iprt/nocrt/fenv.h> 35 36 36 37 … … 43 44 if (lrd >= (long double)LONG_MIN && lrd <= (long double)LONG_MAX) 44 45 return (long)lrd; 45 /** @todo RT_NOCRT(feraiseexcept)(FE_INVALID); */46 RT_NOCRT(feraiseexcept)(FE_INVALID); 46 47 return lrd > 0.0L ? LONG_MAX : LONG_MIN; 47 48 } 48 /** @todo RT_NOCRT(feraiseexcept)(FE_INVALID); */49 RT_NOCRT(feraiseexcept)(FE_INVALID); 49 50 if (RT_NOCRT(__isinfl)(lrd) && lrd < 0.0) 50 51 return LONG_MIN;
Note:
See TracChangeset
for help on using the changeset viewer.