File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
- /* $Id: isinf.c,v 1.2 1998/02/02 00:03:46 scrappy Exp $ */
1
+ /* $Id: isinf.c,v 1.3 1998/02/17 02: 00:12 scrappy Exp $ */
2
2
3
3
#include <math.h>
4
4
#include "config.h"
@@ -24,28 +24,29 @@ isinf(double d)
24
24
}
25
25
return (0 );
26
26
}
27
- #endif
27
+ #else
28
28
29
- #if defined(HAVE_FP_CLASS ) || defined(HAVE_FP_CLASS_D )
29
+ # if defined(HAVE_FP_CLASS ) || defined(HAVE_FP_CLASS_D )
30
30
# if HAVE_FP_CLASS_H
31
- # include <fp_class.h>
31
+ # include <fp_class.h>
32
32
# endif
33
33
int
34
34
isinf (x )
35
35
double x ;
36
36
{
37
- #if HAVE_FP_CLASS
37
+ # if HAVE_FP_CLASS
38
38
int fpclass = fp_class (x );
39
- #else
39
+ # else
40
40
int fpclass = fp_class_d (x );
41
- #endif
41
+ # endif
42
42
43
43
if (fpclass == FP_POS_INF )
44
44
return (1 );
45
45
if (fpclass == FP_NEG_INF )
46
46
return (-1 );
47
47
return (0 );
48
48
}
49
+ # endif
49
50
#endif
50
51
51
52
#if defined(HAVE_CLASS )
You can’t perform that action at this time.
0 commit comments