Brian McAllister wrote:
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
Sorry but I still don't know what I should do.
For alpha and for vms I currently have
#ifndef epicsMathh
#define epicsMathh
#include <math.h>
#define isinf(D) 0
#endif /* epicsMathh */
Are you suggesting?
ifndef epicsMathh
#define epicsMathh
#include <math.h>
#define isinf(D) (!finite((D)))
#endif /* epicsMathh */
Please dont' respont without testing because I have no way to test on alpha or
vms.