VirtualBox

Changeset 96197 in vbox for trunk/include


Ignore:
Timestamp:
Aug 14, 2022 1:04:34 AM (2 years ago)
Author:
vboxsync
Message:

IPRT/math.h: Define our own set of classification flags so we can test fpclassify[dfl] in IPRT_NOCRT_WITHOUT_MATH_CONSTANTS mode. bugref:10261

File:
1 edited

Legend:

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

    r96184 r96197  
    482482
    483483
     484/** @name fpclassify return values
     485 * @{  */
     486#define RT_NOCRT_FP_INFINITE    0x01
     487#define RT_NOCRT_FP_NAN         0x02
     488#define RT_NOCRT_FP_NORMAL      0x04
     489#define RT_NOCRT_FP_SUBNORMAL   0x08
     490#define RT_NOCRT_FP_ZERO        0x10
     491/** @} */
     492
    484493/* bird 2022-08-03: moved this block down so we can prototype isnan & isinf without runnning into the macro forms. */
    485494#ifndef IPRT_NOCRT_WITHOUT_MATH_CONSTANTS /* __ISO_C_VISIBLE >= 1999*/
     
    522531
    523532/* Symbolic constants to classify floating point numbers. */
    524 # define FP_INFINITE 0x01
    525 # define FP_NAN      0x02
    526 # define FP_NORMAL   0x04
    527 # define FP_SUBNORMAL    0x08
    528 # define FP_ZERO     0x10
     533# define FP_INFINITE            RT_NOCRT_FP_INFINITE
     534# define FP_NAN                 RT_NOCRT_FP_NAN
     535# define FP_NORMAL              RT_NOCRT_FP_NORMAL
     536# define FP_SUBNORMAL           RT_NOCRT_FP_SUBNORMAL
     537# define FP_ZERO                RT_NOCRT_FP_ZERO
    529538# define fpclassify(x) \
    530539    ((sizeof (x) == sizeof (float)) ? RT_NOCRT(__fpclassifyf)(x) \
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