VirtualBox

Ignore:
Timestamp:
Aug 8, 2022 10:15:00 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152921
Message:

IPRT/nocrt: l[l]round[lf] fixes. bugref:10261

Location:
trunk/src/VBox/Runtime/common/math
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/math/llround.cpp

    r96118 r96119  
    4040    if (isfinite(rd))
    4141    {
    42         rd = round(rd);
     42        rd = RT_NOCRT(round)(rd);
    4343        if (rd >= (double)LLONG_MIN && rd <= (double)LLONG_MAX)
    4444            return (long)rd;
  • trunk/src/VBox/Runtime/common/math/llroundf.cpp

    r96118 r96119  
    4040    if (isfinite(r32))
    4141    {
    42         r32 = roundf(r32);
     42        r32 = RT_NOCRT(roundf)(r32);
    4343        if (r32 >= (float)LLONG_MIN && r32 <= (float)LLONG_MAX)
    4444            return (long)r32;
  • trunk/src/VBox/Runtime/common/math/llroundl.cpp

    r96118 r96119  
    4040    if (isfinite(lrd))
    4141    {
    42         lrd = roundl(lrd);
     42        lrd = RT_NOCRT(roundl)(lrd);
    4343        if (lrd >= (long double)LLONG_MIN && lrd <= (long double)LLONG_MAX)
    4444            return (long)lrd;
  • trunk/src/VBox/Runtime/common/math/lround.cpp

    r96117 r96119  
    4040    if (isfinite(rd))
    4141    {
    42         rd = round(rd);
     42        rd = RT_NOCRT(round)(rd);
    4343        if (rd >= (double)LONG_MIN && rd <= (double)LONG_MAX)
    4444            return (long)rd;
  • trunk/src/VBox/Runtime/common/math/lroundf.cpp

    r96118 r96119  
    4040    if (isfinite(r32))
    4141    {
    42         r32 = roundf(r32);
     42        r32 = RT_NOCRT(roundf)(r32);
    4343        if (r32 >= (float)LONG_MIN && r32 <= (float)LONG_MAX)
    4444            return (long)r32;
  • trunk/src/VBox/Runtime/common/math/lroundl.cpp

    r96117 r96119  
    4040    if (isfinite(lrd))
    4141    {
    42         lrd = roundl(lrd);
     42        lrd = RT_NOCRT(roundl)(lrd);
    4343        if (lrd >= (long double)LONG_MIN && lrd <= (long double)LONG_MAX)
    4444            return (long)lrd;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette