Kay-Uwe Kasemir wrote:
Greetings!
How do you catch NaN? Different from most C/C++ compilers
and standard C/C++ libraries,
the one we use for vxWorks/Tornado 2.0.2 does not define "isnan()".
Shen Peng suggested to use something like this:
#define isnan(x) ((x)!=(x))
Who knows if this works in all cases?
In 3.14 <base>/src/libCom/osi/os/*/epicsMath.h provides an
implementation of isnan.
The following implementations are provided:
VMS/epicsMath.h alpha/epicsMath.h solaris/epicsMath.h
WIN32/epicsMath.h posix/epicsMath.h vxWorks/epicsMath.h
A test exists in libCom/test/epicsMathTest
This is documented in the 3.14 Application Developer's Guide.
Look in the index for epicsMath
Marty Kraimer
- References:
- Not-a-number (nan) issues Kay-Uwe Kasemir
- Navigate by Date:
- Prev:
Re: Not-a-number (nan) issues Andrew Johnson
- Next:
Re: Not-a-number (nan) issues Kay-Uwe Kasemir
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
<2004>
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Not-a-number (nan) issues Andrew Johnson
- Next:
double defenition in Epics Liyu, Andrei
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
<2004>
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|