VirtualBox

Changeset 96205 in vbox for trunk/include


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

Location:
trunk/include/iprt/nocrt
Files:
1 added
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nocrt/fenv.h

    r93115 r96205  
    3131
    3232#include <iprt/cdefs.h>
    33 #ifdef RT_ARCH_AMD64
    34 # include <iprt/nocrt/amd64/fenv.h>
    35 #elif defined(RT_ARCH_X86)
    36 # include <iprt/nocrt/x86/fenv.h>
     33#if defined(RT_ARCH_X86) || defined(RT_ARCH_AMD64)
     34# include <iprt/nocrt/x86/fenv-x86-amd64.h>
    3735#else
    3836# error "IPRT: no fenv.h available for this platform, or the platform define is missing!"
  • trunk/include/iprt/nocrt/math.h

    r96197 r96205  
    8181#endif
    8282
    83 #ifndef IPRT_NOCRT_WITHOUT_MATH_CONSTANTS
     83#ifndef IPRT_NOCRT_WITHOUT_CONFLICTING_CONSTANTS
    8484
    8585# if defined(__MATH_BUILTIN_CONSTANTS) \
     
    434434#endif /* __ISO_C_VISIBLE >= 1999 */
    435435
    436 #ifndef IPRT_NOCRT_WITHOUT_MATH_CONSTANTS /*def __USE_GNU*/
     436#ifndef IPRT_NOCRT_WITHOUT_CONFLICTING_CONSTANTS /*def __USE_GNU*/
    437437/*
    438438 * In GLIBC there are long variants of the XOPEN/SVID constant
     
    492492
    493493/* bird 2022-08-03: moved this block down so we can prototype isnan & isinf without runnning into the macro forms. */
    494 #ifndef IPRT_NOCRT_WITHOUT_MATH_CONSTANTS /* __ISO_C_VISIBLE >= 1999*/
     494#ifndef IPRT_NOCRT_WITHOUT_CONFLICTING_CONSTANTS /* __ISO_C_VISIBLE >= 1999*/
    495495# define FP_ILOGB0   (-__INT_MAX)
    496496# define FP_ILOGBNAN __INT_MAX
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