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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: NAN and INF |
From: | Marty Kraimer <[email protected]> |
To: | Brian McAllister <[email protected]> |
Cc: | [email protected] |
Date: | Mon, 22 Apr 2002 08:28:35 -0500 |
On 4/11/2002 at 8:54:36 PDT, Rarback, Harvey wrote:
>> For VMS I could define epicsMath.h as
>> >> #ifndef epicsMathh #define epicsMathh
>> >> #include <math.h> #define isinf(D) 0
>> >> #endif /* epicsMathh */
>> >> Any better ideas for implementing isinf on VMS?
> Sounds ok to me. BTW, the same should apply to Tru64 Unix, aka Digital > Unix, aka OSF-1.
Digital Unix provides isnan()/isnanf() and finite()/finitef() for doubles and floats, respectively. In libm, defined in math.h.
finite() looks just like isinf().
---- Brian McAllister Controls Programmer/Beam Physicist [email protected] MIT-Bates Linear Accelerator (617) 253-9537 Middleton, MA
#ifndef epicsMathh #define epicsMathh
#include <math.h> #define isinf(D) 0
ifndef epicsMathh #define epicsMathh
#include <math.h> #define isinf(D) (!finite((D)))