OSDN Git Service

(split) Apply minor changes from v3.32 to v3.35 in the upstream.
[linuxjm/LDP_man-pages.git] / release / man3 / ilogb.3
1 .\" Copyright 2004 Andries Brouwer <aeb@cwi.nl>.
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\"     <mtk.manpages@gmail.com>
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" Inspired by a page by Walter Harms created 2002-08-10
26 .\"
27 .\" Japanese Version Copyright (c) 2005 Yuichi SATO
28 .\" and Copyright (c) 2008 Akihiro MOTOKI
29 .\" Translated Sat Jan 29 05:17:36 JST 2005
30 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
31 .\" Updated 2008-09-18, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
32 .\"
33 .TH ILOGB 3 2010-09-20 "" "Linux Programmer's Manual"
34 .SH Ì¾Á°
35 ilogb, ilogbf, ilogbl \- ÉâÆ°¾®¿ôÅÀ¿ô¤Î»Ø¿ôÉô¤òÀ°¿ô¤È¤·¤Æ¼èÆÀ¤¹¤ë
36 .SH ½ñ¼°
37 .B #include <math.h>
38 .sp
39 .BI "int ilogb(double " x );
40 .br
41 .BI "int ilogbf(float " x );
42 .br
43 .BI "int ilogbl(long double " x );
44 .sp
45 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
46 .sp
47 .in -4n
48 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
49 .RB ( feature_test_macros (7)
50 »²¾È):
51 .in
52 .sp
53 .ad l
54 .BR ilogb ():
55 .RS 4
56 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
57 _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED ||
58 _ISOC99_SOURCE ||
59 _POSIX_C_SOURCE\ >=\ 200112L;
60 .br
61 or
62 .I cc\ -std=c99
63 .RE
64 .br
65 .BR ilogbf (),
66 .BR ilogbl ():
67 .RS 4
68 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
69 _POSIX_C_SOURCE\ >=\ 200112L;
70 .br
71 or
72 .I cc\ -std=c99
73 .RE
74 .ad b
75 .SH ÀâÌÀ
76 ¤³¤ì¤é¤Î´Ø¿ô¤Ï°ú¤­¿ô¤Î»Ø¿ôÉô¤òÉä¹æÉÕ¤­À°¿ô¤È¤·¤ÆÊÖ¤¹¡£
77 ¥¨¥é¡¼¤¬µ¯¤é¤Ê¤«¤Ã¤¿¾ì¹ç¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢Âбþ¤¹¤ë
78 .BR logb (3)
79 ´Ø¿ô¤ò
80 .I int
81 ¤Ç¥­¥ã¥¹¥È¤·¤¿¤â¤Î¤ÈÅù²Á¤Ç¤¢¤ë¡£
82 .SH ÊÖ¤êÃÍ
83 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
84 .I x
85 ¤Î»Ø¿ôÉô¤òÉä¹æÉÕ¤­À°¿ô¤È¤·¤ÆÊÖ¤¹¡£
86
87 .\" the POSIX.1 spec for logb() says logb() gives pole error for this
88 .\" case, but for ilogb() it says domain error.
89 .\" glibc: The numeric value is either `INT_MIN' or `-INT_MAX'.
90 .I x
91 ¤¬¥¼¥í¤Î¾ì¹ç¡¢Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢
92 .B FP_ILOGB0
93 ¤¬ÊÖ¤µ¤ì¤ë¡£
94
95 .\" glibc: The numeric value is either `INT_MIN' or `INT_MAX'.
96 .\" On i386, FP_ILOGB0 and FP_ILOGBNAN have the same value.
97 .I x
98 ¤¬ NaN ¤Î¾ì¹ç¡¢Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢
99 .B FP_ILOGBNAN
100 ¤¬ÊÖ¤µ¤ì¤ë¡£
101
102 .I x
103 ¤¬Éé¤Î̵¸ÂÂ礫Àµ¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢
104 Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢
105 .B INT_MAX
106 ¤¬ÊÖ¤µ¤ì¤ë¡£
107 .\"
108 .\" POSIX.1-2001 also says:
109 .\" If the correct value is greater than {INT_MAX}, {INT_MAX}
110 .\" shall be returned and a domain error shall occur.
111 .\"
112 .\" If the correct value is less than {INT_MIN}, {INT_MIN}
113 .\" shall be returned and a domain error shall occur.
114 .SH ¥¨¥é¡¼
115 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
116 .BR math_error (7)
117 ¤ò»²¾È¤Î¤³¤È¡£
118 .PP
119 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
120 .TP
121 Îΰ襨¥é¡¼: \fIx\fP ¤¬ 0 ¤« NaN
122 .\" .I errno
123 .\" is set to
124 .\" .BR EDOM .
125 ÉÔÀµ (invalid) ÉâÆ°¾®¿ôÅÀÎã³°
126 .RB ( FE_INVALID )
127 ¤¬¾å¤¬¤ë¡£
128 .IP
129 ¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢¤³¤Î¾õ¶·¤Ç
130 .I errno
131 ¤òÀßÄꤷ¤Ê¤¤¡£
132 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6794
133 .TP
134 Îΰ襨¥é¡¼: \fIx\fP ¤¬Ìµ¸ÂÂç
135 .\" .I errno
136 .\" is set to
137 .\" .BR EDOM .
138 .\" An invalid floating-point exception
139 .\" .RB ( FE_INVALID )
140 .\" is raised.
141 .IP
142 ¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢¤³¤Î¾õ¶·¤Ç
143 .I errno
144 ¤òÀßÄꤻ¤º¡¢Îã³°¤â¾å¤²¤Ê¤¤¡£
145 .\" FIXME . Is it intentional that these functions do not set errno,
146 .\" or raise an exception?
147 .\" log(), log2(), log10() do set errno
148 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6794
149 .SH ½àµò
150 C99, POSIX.1-2001.
151 .SH ´ØÏ¢¹àÌÜ
152 .BR log (3),
153 .BR logb (3),
154 .BR significand (3)