This is Unofficial EPICS BASE Doxygen Site
epicsMath.h
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2002 The University of Chicago, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * EPICS BASE is distributed subject to a Software License Agreement found
7 * in file LICENSE that is included with this distribution.
8 \*************************************************************************/
9 
10 #ifndef epicsMathh
11 #define epicsMathh
12 
13 #include <math.h>
14 #include <libComAPI.h>
15 
16 #ifdef __cplusplus
17 
18 #if __cplusplus>=201103L
19 #include <cmath>
20 
21 #if __GLIBCXX__>20160427
22 using std::isfinite;
23 using std::isinf;
24 using std::isnan;
25 using std::isnormal;
26 #endif
27 #endif /* c++11 */
28 
29 extern "C" {
30 #endif
31 
32 #ifdef isfinite
33 # undef finite
34 # define finite(x) isfinite((double)(x))
35 #endif
36 
37 LIBCOM_API extern float epicsNAN;
38 LIBCOM_API extern float epicsINF;
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif /* epicsMathh */
#define isinf(x)
Definition: epicsMath.h:16
#define isnan(x)
Definition: epicsMath.h:21
LIBCOM_API float epicsINF
Definition: epicsMath.cpp:36
LIBCOM_API float epicsNAN
Definition: epicsMath.cpp:35