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 <float.h>
15 #include <libComAPI.h>
16 
17 #ifndef finite
18 #define finite(D) _finite(D)
19 #endif
20 
21 #ifndef isnan
22 #define isnan(D) _isnan(D)
23 #endif
24 
25 #ifndef isinf
26 #define isinf(D) ( !_finite(D) && !_isnan(D) )
27 #endif
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 LIBCOM_API extern float epicsNAN;
34 LIBCOM_API extern float epicsINF;
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 
40 #endif /* epicsMathh */
LIBCOM_API float epicsINF
Definition: epicsMath.cpp:36
LIBCOM_API float epicsNAN
Definition: epicsMath.cpp:35