This is Unofficial EPICS BASE Doxygen Site
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
;
36
float
epicsINF
=
INFINITY
;
37
}
38
39
#ifdef _MSC_VER
40
#pragma warning(pop)
41
#endif
42
INFINITY
#define INFINITY
Definition:
epicsMath.cpp:31
epicsNAN
float epicsNAN
Definition:
epicsMath.cpp:35
NAN
#define NAN
Definition:
epicsMath.cpp:22
epicsINF
float epicsINF
Definition:
epicsMath.cpp:36
modules
libcom
src
osi
epicsMath.cpp
Generated by
1.8.11