OSDN Git Service

adcd2e50702853c4f49a34edbb7822d2ada41661
[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 2009-02-04 "" "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 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _ISOC99_SOURCE; or
56 .I cc\ -std=c99
57 .br
58 .BR ilogbf (),
59 .BR ilogbl ():
60 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
61 .I cc\ -std=c99
62 .ad b
63 .SH ÀâÌÀ
64 ¤³¤ì¤é¤Î´Ø¿ô¤Ï°ú¤­¿ô¤Î»Ø¿ôÉô¤òÉä¹æÉÕ¤­À°¿ô¤È¤·¤ÆÊÖ¤¹¡£
65 ¥¨¥é¡¼¤¬µ¯¤é¤Ê¤«¤Ã¤¿¾ì¹ç¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢Âбþ¤¹¤ë
66 .BR logb (3)
67 ´Ø¿ô¤ò
68 .I int
69 ¤Ç¥­¥ã¥¹¥È¤·¤¿¤â¤Î¤ÈÅù²Á¤Ç¤¢¤ë¡£
70 .SH ÊÖ¤êÃÍ
71 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
72 .I x
73 ¤Î»Ø¿ôÉô¤òÉä¹æÉÕ¤­À°¿ô¤È¤·¤ÆÊÖ¤¹¡£
74
75 .\" the POSIX.1 spec for logb() says logb() gives pole error for this
76 .\" case, but for ilogb() it says domain error.
77 .\" glibc: The numeric value is either `INT_MIN' or `-INT_MAX'.
78 .I x
79 ¤¬¥¼¥í¤Î¾ì¹ç¡¢Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢
80 .B FP_ILOGB0
81 ¤¬ÊÖ¤µ¤ì¤ë¡£
82
83 .\" glibc: The numeric value is either `INT_MIN' or `INT_MAX'.
84 .\" On i386, FP_ILOGB0 and FP_ILOGBNAN have the same value.
85 .I x
86 ¤¬ NaN ¤Î¾ì¹ç¡¢Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢
87 .B FP_ILOGBNAN
88 ¤¬ÊÖ¤µ¤ì¤ë¡£
89
90 .I x
91 ¤¬Éé¤Î̵¸ÂÂ礫Àµ¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢
92 Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢
93 .B INT_MAX
94 ¤¬ÊÖ¤µ¤ì¤ë¡£
95 .\"
96 .\" POSIX.1-2001 also says:
97 .\" If  the correct value is greater than {INT_MAX}, {INT_MAX}
98 .\" shall be returned and a domain error shall occur.
99 .\"
100 .\" If the correct value is less than {INT_MIN}, {INT_MIN}
101 .\" shall be returned and  a  domain  error  shall occur.
102 .SH ¥¨¥é¡¼
103 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
104 .BR math_error (7)
105 ¤ò»²¾È¤Î¤³¤È¡£
106 .PP
107 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
108 .TP
109 Îΰ襨¥é¡¼: \fIx\fP ¤¬ 0 ¤« NaN
110 .\" .I errno
111 .\" is set to
112 .\" .BR EDOM .
113 ÉÔÀµ (invalid) ÉâÆ°¾®¿ôÅÀÎã³°
114 .RB ( FE_INVALID )
115 ¤¬¾å¤¬¤ë¡£
116 .IP
117 ¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢¤³¤Î¾õ¶·¤Ç
118 .I errno
119 ¤òÀßÄꤷ¤Ê¤¤¡£
120 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6794
121 .TP
122 Îΰ襨¥é¡¼: \fIx\fP ¤¬Ìµ¸ÂÂç
123 .\" .I errno
124 .\" is set to
125 .\" .BR EDOM .
126 .\" An invalid floating-point exception
127 .\" .RB ( FE_INVALID )
128 .\" is raised.
129 .IP
130 ¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢¤³¤Î¾õ¶·¤Ç
131 .I errno
132 ¤òÀßÄꤻ¤º¡¢Îã³°¤â¾å¤²¤Ê¤¤¡£
133 .\" FIXME . Is it intentional that these functions do not set errno,
134 .\" or raise an exception?
135 .\" log(), log2(), log10() do set errno
136 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6794
137 .SH ½àµò
138 C99, POSIX.1-2001.
139 .SH ´ØÏ¢¹àÌÜ
140 .BR log (3),
141 .BR logb (3),
142 .BR significand (3)