VirtualBox

Ignore:
Timestamp:
Aug 14, 2022 11:40:55 PM (2 years ago)
Author:
vboxsync
Message:

IPRT/nocrt: Implemented x86 and amd64 fenv.h to assist with the testing. More tests. bugref:10261

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTNoCrt-2.cpp

    r96203 r96205  
    3838
    3939#define IPRT_NO_CRT_FOR_3RD_PARTY
    40 #define IPRT_NOCRT_WITHOUT_MATH_CONSTANTS /* so we can include both the CRT one and our no-CRT header */
     40#define IPRT_NOCRT_WITHOUT_CONFLICTING_CONSTANTS /* so we can include both the CRT one and our no-CRT header */
     41#define IPRT_NOCRT_WITHOUT_CONFLICTING_TYPES     /* so we can include both the CRT one and our no-CRT header */
    4142#include <iprt/nocrt/math.h>
    4243#define IPRT_INCLUDED_nocrt_limits_h /* prevent our limits from being included */
     
    11041105     */
    11051106#if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)
    1106     AssertCompile(FE_TONEAREST  == X86_FCW_RC_NEAREST);
    1107     AssertCompile(FE_DOWNWARD   == X86_FCW_RC_DOWN);
    1108     AssertCompile(FE_UPWARD     == X86_FCW_RC_UP);
    1109     AssertCompile(FE_TOWARDZERO == X86_FCW_RC_ZERO);
    1110     AssertCompile(_ROUND_MASK  == X86_FCW_RC_MASK);
     1107    AssertCompile(RT_NOCRT_FE_TONEAREST  == X86_FCW_RC_NEAREST);
     1108    AssertCompile(RT_NOCRT_FE_DOWNWARD   == X86_FCW_RC_DOWN);
     1109    AssertCompile(RT_NOCRT_FE_UPWARD     == X86_FCW_RC_UP);
     1110    AssertCompile(RT_NOCRT_FE_TOWARDZERO == X86_FCW_RC_ZERO);
     1111    AssertCompile(RT_NOCRT_FE_ROUND_MASK == X86_FCW_RC_MASK);
    11111112#endif
    11121113    int const iSavedMode = RT_NOCRT(fegetround)();
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