VirtualBox

Ignore:
Timestamp:
Aug 8, 2022 10:20:03 PM (2 years ago)
Author:
vboxsync
Message:

IPRT/nocrt: fmax, fmaxf and fmaxl. bugref:10261

File:
1 copied

Legend:

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

    r96120 r96122  
    11/* $Id$ */
    22/** @file
    3  * IPRT - No-CRT - fminl().
     3 * IPRT - No-CRT - fmaxl().
    44 */
    55
     
    3232#include "internal/nocrt.h"
    3333#include <iprt/nocrt/math.h>
    34 #include <iprt/nocrt/limits.h>
    3534
    3635
    37 #undef fminl
    38 long double RT_NOCRT(fminl)(long double  lrdLeft, long double lrdRight)
     36#undef fmaxl
     37long double RT_NOCRT(fmaxl)(long double  lrdLeft, long double lrdRight)
    3938{
    4039    if (!isnan(lrdLeft))
     
    4544               the 0.0 test and signbit fun here. */
    4645            if (lrdLeft != lrdRight || lrdLeft != 0.0)
    47                 return lrdLeft <= lrdRight ? lrdLeft : lrdRight;
    48             return signbit(lrdLeft) >= signbit(lrdRight) ? lrdLeft : lrdRight;
     46                return lrdLeft >= lrdRight ? lrdLeft : lrdRight;
     47            return signbit(lrdLeft) <= signbit(lrdRight) ? lrdLeft : lrdRight;
    4948        }
    5049        return lrdLeft;
     
    5251    return lrdRight;
    5352}
    54 RT_ALIAS_AND_EXPORT_NOCRT_SYMBOL(fminl);
     53RT_ALIAS_AND_EXPORT_NOCRT_SYMBOL(fmaxl);
    5554
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