VirtualBox

Changeset 95975 in vbox for trunk/include/iprt/nocrt/float.h


Ignore:
Timestamp:
Aug 2, 2022 12:55:08 AM (2 years ago)
Author:
vboxsync
Message:

include/iprt/nocrt: Prototyped a whole bunch of things to make mesa (almost) compile. bugref:10261

File:
1 edited

Legend:

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

    r95859 r95975  
    3232#include <iprt/types.h>
    3333
     34/*
     35 * Common.
     36 */
     37#define FLT_RADIX       2
     38
     39
     40/*
     41 * float
     42 */
     43#if defined(RT_ARCH_X86) || defined(RT_ARCH_AMD64) || defined(RT_ARCH_ARM64)
     44
     45# define FLT_MAX        (3.40282347E+38F)
     46# define FLT_MIN        (1.17549435E-38F)
     47# define FLT_MAX_EXP    (128)
     48# define FLT_MIN_EXP    (-125)
     49# define FLT_EPSILON    (1.192092896E-07F)
     50
     51#endif
     52
     53/*
     54 * double
     55 */
     56#if defined(RT_ARCH_X86) || defined(RT_ARCH_AMD64) || defined(RT_ARCH_ARM64)
     57
     58# define DBL_MAX        (1.7976931348623157E+308)
     59# define DBL_MIN        (2.2250738585072014E-308)
     60# define DBL_MAX_EXP    (1024)
     61# define DBL_MIN_EXP    (-1021)
     62# define DBL_EPSILON    (2.2204460492503131E-16)
     63
     64#endif
     65
     66/*
     67 * long double
     68 */
     69#if (defined(RT_ARCH_X86) || defined(RT_ARCH_AMD64)) && defined(RT_OS_WINDOWS)
     70# define LDBL_MAX        DBL_MAX
     71# define LDBL_MIN        DBL_MIN
     72# define LDBL_MAX_EXP    DBL_MAX_EXP
     73# define LDBL_MIN_EXP    DBL_MIN_EXP
     74# define LDBL_EPSIOLON   DBL_EPSIOLON
     75#endif
     76
    3477
    3578#endif /* !IPRT_INCLUDED_nocrt_float_h */
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