Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit203f6d9

Browse files
committed
2. IRIX has both HAVE_FPCLASS and HAVE_FP_CLASS, therefore, in
backend/port/isinf.c it tries to compile two versions ofisinf().From: Andrew Martin <martin@biochemistry.ucl.ac.uk>
1 parent25ad143 commit203f6d9

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

‎src/backend/port/isinf.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: isinf.c,v 1.2 1998/02/0200:03:46 scrappy Exp $ */
1+
/* $Id: isinf.c,v 1.3 1998/02/17 02:00:12 scrappy Exp $ */
22

33
#include<math.h>
44
#include"config.h"
@@ -24,28 +24,29 @@ isinf(double d)
2424
}
2525
return (0);
2626
}
27-
#endif
27+
#else
2828

29-
#if defined(HAVE_FP_CLASS)|| defined(HAVE_FP_CLASS_D)
29+
#if defined(HAVE_FP_CLASS)|| defined(HAVE_FP_CLASS_D)
3030
# ifHAVE_FP_CLASS_H
31-
#include<fp_class.h>
31+
# include<fp_class.h>
3232
# endif
3333
int
3434
isinf(x)
3535
doublex;
3636
{
37-
#ifHAVE_FP_CLASS
37+
#ifHAVE_FP_CLASS
3838
intfpclass=fp_class(x);
39-
#else
39+
#else
4040
intfpclass=fp_class_d(x);
41-
#endif
41+
#endif
4242

4343
if (fpclass==FP_POS_INF)
4444
return (1);
4545
if (fpclass==FP_NEG_INF)
4646
return (-1);
4747
return (0);
4848
}
49+
# endif
4950
#endif
5051

5152
#if defined(HAVE_CLASS)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp