This is Unofficial EPICS BASE Doxygen Site
epicsMath.cpp
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2010 UChicago Argonna 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 /* epicsMath.cpp */
8 
9 #include <epicsMath.h>
10 
11 #ifdef _MSC_VER
12 #pragma warning(push)
13 #pragma warning(disable:4723)
14 #endif
15 
16 #ifndef NAN
17 static float makeNAN ( void )
18 {
19  float a = 0, b = 0;
20  return a / b;
21 }
22 #define NAN makeNAN()
23 #endif
24 
25 #ifndef INFINITY
26 static float makeINF ( void )
27 {
28  float a = 1, b = 0;
29  return a / b;
30 }
31 #define INFINITY makeINF()
32 #endif
33 
34 extern "C" {
35 float epicsNAN = NAN;
37 }
38 
39 #ifdef _MSC_VER
40 #pragma warning(pop)
41 #endif
42 
#define INFINITY
Definition: epicsMath.cpp:31
float epicsNAN
Definition: epicsMath.cpp:35
#define NAN
Definition: epicsMath.cpp:22
float epicsINF
Definition: epicsMath.cpp:36