This is Unofficial EPICS BASE Doxygen Site
epicsMath.h
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2008 UChicago Argonne, LLC as Operator of Argonne
3 * National Laboratory.
4 * EPICS BASE is distributed subject to a Software License Agreement found
5 * in file LICENSE that is included with this distribution.
6 \*************************************************************************/
7 
8 #ifndef INC_epicsMath_H
9 #define INC_epicsMath_H
10 
11 #include <math.h>
12 #include <ieeefp.h>
13 #include <libComAPI.h>
14 
15 #ifndef isinf
16 # define isinf(x) (((x)==(x)) && !finite((x)))
17 /* same as (!isnan(x) && !finite(x)) */
18 #endif
19 
20 #ifndef isnan
21 # define isnan(x) ((x) != (x))
22 #endif
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 LIBCOM_API extern float epicsNAN;
29 LIBCOM_API extern float epicsINF;
30 
31 #ifdef __cplusplus
32 }
33 #endif
34 
35 #endif /* INC_epicsMath_H */
LIBCOM_API float epicsINF
Definition: epicsMath.cpp:36
LIBCOM_API float epicsNAN
Definition: epicsMath.cpp:35