HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fp_class.h
Go to the documentation of this file.
1 /* Dummy includy file for NT and Linux */
2 
3 #ifndef __fp_class_f__
4 #define __fp_class_f__
5 
6 #ifdef WIN32
7  #include <float.h>
8  #define FP_SNAN _FPCLASS_SNAN
9  #define FP_QNAN _FPCLASS_QNAN
10  #define FP_NEG_INF _FPCLASS_NINF
11  #define FP_NEG_NORM _FPCLASS_NN
12  #define FP_NEG_DENORM _FPCLASS_ND
13  #define FP_NEG_ZERO _FPCLASS_NZ
14  #define FP_POS_ZERO _FPCLASS_PZ
15  #define FP_POS_DENORM _FPCLASS_PD
16  #define FP_POS_NORM _FPCLASS_PN
17  #define FP_POS_INF _FPCLASS_PINF
18  #define fp_class_f(f) _fpclass(f)
19  #define fp_class_d(f) _fpclass(f)
20 #elif defined(LINUX) || defined(MBSD)
21  #include <math.h>
22  // FP_SNAN/FP_QNAN are defined by default on OSX to FP_NAN
23  #undef FP_SNAN
24  #define FP_SNAN 0
25  #undef FP_QNAN
26  #define FP_QNAN 1
27  #define FP_POS_INF 2
28  #define FP_NEG_INF 3
29  #define FP_POS_NORM 4
30  #define FP_NEG_NORM 5
31  #define FP_POS_DENORM 6
32  #define FP_NEG_DENORM 7
33  #define FP_POS_ZERO 8
34  #define FP_NEG_ZERO 9
35 #endif
36 
37 #endif