Changeset 96122 in vbox for trunk/src/VBox/Runtime/common/math/fmaxl.cpp
- Timestamp:
- Aug 8, 2022 10:20:03 PM (2 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/math/fmaxl.cpp
r96120 r96122 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT - No-CRT - fm inl().3 * IPRT - No-CRT - fmaxl(). 4 4 */ 5 5 … … 32 32 #include "internal/nocrt.h" 33 33 #include <iprt/nocrt/math.h> 34 #include <iprt/nocrt/limits.h>35 34 36 35 37 #undef fm inl38 long double RT_NOCRT(fm inl)(long double lrdLeft, long double lrdRight)36 #undef fmaxl 37 long double RT_NOCRT(fmaxl)(long double lrdLeft, long double lrdRight) 39 38 { 40 39 if (!isnan(lrdLeft)) … … 45 44 the 0.0 test and signbit fun here. */ 46 45 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; 49 48 } 50 49 return lrdLeft; … … 52 51 return lrdRight; 53 52 } 54 RT_ALIAS_AND_EXPORT_NOCRT_SYMBOL(fm inl);53 RT_ALIAS_AND_EXPORT_NOCRT_SYMBOL(fmaxl); 55 54
Note:
See TracChangeset
for help on using the changeset viewer.