Changeset 96122 in vbox
- Timestamp:
- Aug 8, 2022 10:20:03 PM (2 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 2 edited
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/Makefile.kmk
r96120 r96122 1813 1813 common/math/copysignf.cpp \ 1814 1814 common/math/copysignl.cpp \ 1815 common/math/fmax.cpp \ 1816 common/math/fmaxf.cpp \ 1817 common/math/fmaxl.cpp \ 1815 1818 common/math/fmin.cpp \ 1816 1819 common/math/fminf.cpp \ -
trunk/src/VBox/Runtime/common/math/fmax.cpp
r96120 r96122 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT - No-CRT - fm in().3 * IPRT - No-CRT - fmax(). 4 4 */ 5 5 … … 34 34 35 35 36 #undef fm in37 double RT_NOCRT(fm in)(double rdLeft, double rdRight)36 #undef fmax 37 double RT_NOCRT(fmax)(double rdLeft, double rdRight) 38 38 { 39 39 if (!isnan(rdLeft)) … … 44 44 the 0.0 test and signbit fun here. */ 45 45 if (rdLeft != rdRight || rdLeft != 0.0) 46 return rdLeft <= rdRight ? rdLeft : rdRight;47 return signbit(rdLeft) >= signbit(rdRight) ? rdLeft : rdRight;46 return rdLeft >= rdRight ? rdLeft : rdRight; 47 return signbit(rdLeft) <= signbit(rdRight) ? rdLeft : rdRight; 48 48 } 49 49 return rdLeft; … … 51 51 return rdRight; 52 52 } 53 RT_ALIAS_AND_EXPORT_NOCRT_SYMBOL(fm in);53 RT_ALIAS_AND_EXPORT_NOCRT_SYMBOL(fmax); 54 54 -
trunk/src/VBox/Runtime/common/math/fmaxf.cpp
r96120 r96122 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT - No-CRT - fm inf().3 * IPRT - No-CRT - fmaxf(). 4 4 */ 5 5 … … 34 34 35 35 36 #undef fm inf37 float RT_NOCRT(fm inf)(float r32Left, float r32Right)36 #undef fmaxf 37 float RT_NOCRT(fmaxf)(float r32Left, float r32Right) 38 38 { 39 39 if (!isnan(r32Left)) … … 44 44 the 0.0 test and signbit fun here. */ 45 45 if (r32Left != r32Right || r32Left != 0.0) 46 return r32Left <= r32Right ? r32Left : r32Right;47 return signbit(r32Left) >= signbit(r32Right) ? r32Left : r32Right;46 return r32Left >= r32Right ? r32Left : r32Right; 47 return signbit(r32Left) <= signbit(r32Right) ? r32Left : r32Right; 48 48 } 49 49 return r32Left; … … 51 51 return r32Right; 52 52 } 53 RT_ALIAS_AND_EXPORT_NOCRT_SYMBOL(fm inf);53 RT_ALIAS_AND_EXPORT_NOCRT_SYMBOL(fmaxf); 54 54 -
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 -
trunk/src/VBox/Runtime/common/math/fminl.cpp
r96120 r96122 32 32 #include "internal/nocrt.h" 33 33 #include <iprt/nocrt/math.h> 34 #include <iprt/nocrt/limits.h>35 34 36 35
Note:
See TracChangeset
for help on using the changeset viewer.