OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / draft / man3 / finite.3
1 .\" Copyright 2004 Andries Brouwer <aeb@cwi.nl>.
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\"*******************************************************************
26 .\"
27 .\" This file was generated with po4a. Translate the source file.
28 .\"
29 .\"*******************************************************************
30 .\"
31 .\" Japanese Version Copyright (c) 2005  Akihiro MOTOKI
32 .\"         all rights reserved.
33 .\" Translated 2005-02-21, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
34 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
35 .\" Updated 2013-08-16, Akihiro MOTOKI <amotoki@gmail.com>
36 .\"
37 .TH FINITE 3 2013\-07\-22 "" "Linux Programmer's Manual"
38 .SH 名前
39 finite, finitef, finitel, isinf, isinff, isinfl, isnan, isnanf, isnanl \- BSD
40 の浮動小数点分類関数
41 .SH 書式
42 .nf
43 \fB#include <math.h>\fP
44 .sp
45 \fBint finite(double \fP\fIx\fP\fB);\fP
46 .br
47 \fBint finitef(float \fP\fIx\fP\fB);\fP
48 .br
49 \fBint finitel(long double \fP\fIx\fP\fB);\fP
50 .sp
51 \fBint isinf(double \fP\fIx\fP\fB);\fP
52 .br
53 \fBint isinff(float \fP\fIx\fP\fB);\fP
54 .br
55 \fBint isinfl(long double \fP\fIx\fP\fB);\fP
56 .sp
57 \fBint isnan(double \fP\fIx\fP\fB);\fP
58 .br
59 \fBint isnanf(float \fP\fIx\fP\fB);\fP
60 .br
61 \fBint isnanl(long double \fP\fIx\fP\fB);\fP
62 .fi
63 .sp
64 .in -4n
65 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
66 .in
67 .sp
68 .ad l
69 \fBfinite\fP(), \fBfinitef\fP(), \fBfinitel\fP():
70 .RS 4
71 _BSD_SOURCE || _SVID_SOURCE
72 .RE
73 \fBisinf\fP():
74 .RS 4
75 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE;
76 .br
77 or \fIcc\ \-std=c99\fP
78 .RE
79 .br
80 \fBisinff\fP(), \fBisinfl\fP():
81 .RS 4
82 _BSD_SOURCE || _SVID_SOURCE
83 .RE
84 \fBisnan\fP():
85 .RS 4
86 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE;
87 .br
88 or \fIcc\ \-std=c99\fP
89 .RE
90 \fBisnanf\fP(), \fBisnanl\fP():
91 .RS 4
92 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600
93 .RE
94 .ad b
95 .SH 説明
96 関数 \fBfinite\fP(), \fBfinitef\fP(), \fBfinitel\fP() は、 \fIx\fP が無限大や無効値 (NaN)
97 のいずれでもない場合に 0 以外の値を返し、 それ以外の場合は 0 を返す。
98
99 関数 \fBisnan\fP(), \fBisnanf\fP(), and \fBisnanl\fP() 関数は、 \fIx\fP が NaN の場合 0 以外の値を返し、
100 それ以外の場合は 0 を返す。
101
102 関数 \fBisinf\fP(), \fBisinff\fP(), \fBisinfl\fP() は、 \fIx\fP が正の無限大であれば 1 を返し、\fIx\fP
103 が負の無限大で あれば \-1 を返す。それ以外の場合は 0 を返す。
104 .SH 属性
105 .SS "マルチスレッディング (pthreads(7) 参照)"
106 関数 \fBfinite\fP(), \fBfinitef\fP(), \fBfinitel\fP(), \fBisinf\fP(), \fBisinff\fP(),
107 \fBisinfl\fP(), \fBisnan\fP(), \fBisnanf\fP(), \fBisnanl\fP() はスレッドセーフである。
108 .SH 注意
109 .\"
110 .\" finite* not on HP-UX; they exist on Tru64.
111 .\" .SH HISTORY
112 .\" The
113 .\" .BR finite ()
114 .\" function occurs in 4.3BSD.
115 .\" see IEEE.3 in the 4.3BSD manual
116 これらの関数は廃止された点に注意すること。 C99 では、これらの置き換えとして (どんな型にも適用できる)  \fBisfinite\fP(),
117 \fBisinf\fP(), \fBisnan\fP()  というマクロが定義されている。 さらに C99 の \fBisinf\fP()
118 は返り値に関して弱い意味での保証しかないことにも 注意すること。詳細は \fBfpclassify\fP(3)  を参照。
119 .SH 関連項目
120 \fBfpclassify\fP(3)
121 .SH この文書について
122 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
123 である。プロジェクトの説明とバグ報告に関する情報は
124 http://www.kernel.org/doc/man\-pages/ に書かれている。