OSDN Git Service

(split) Fixed #25191 (typo in fenv.3).
[linuxjm/LDP_man-pages.git] / release / man3 / ldexp.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
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 .\" References consulted:
26 .\"     Linux libc source code
27 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28 .\"     386BSD man pages
29 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
30 .\" Modified 2004-10-31 by aeb
31 .\"
32 .\" Japanese Version Copyright (c) 1997 YOSHINO Takashi
33 .\"       all rights reserved.
34 .\" Translated Thu Feb 13 23:14:00 JST 1997
35 .\"       by YOSHINO Takashi <yoshino@civil.jcn.nihon-u.ac.jp>
36 .\" Updated & Modified Sun Jun  6 10:35:26 JST 2004
37 .\"       by Yuichi SATO <ysato444@yahoo.co.jp>
38 .\" Updated & Modified Sat Jan 15 05:40:56 JST 2005 by Yuichi SATO
39 .\" Updated 2008-09-18, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
40 .\"
41 .TH LDEXP 3 2010-09-20 "" "Linux Programmer's Manual"
42 .SH Ì¾Á°
43 ldexp, ldexpf, ldexpl \- ÉâÆ°¾®¿ôÅÀ¼Â¿ô¤È 2 ¤ÎÀ°¿ô¾è¤È¤ÎÀѤò·×»»¤¹¤ë
44 .SH ½ñ¼°
45 .nf
46 .B #include <math.h>
47 .sp
48 .BI "double ldexp(double " x ", int " exp );
49 .br
50 .BI "float ldexpf(float " x ", int " exp );
51 .br
52 .BI "long double ldexpl(long double " x ", int " exp );
53 .fi
54 .sp
55 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
56 .sp
57 .in -4n
58 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
59 .RB ( feature_test_macros (7)
60 »²¾È):
61 .in
62 .sp
63 .ad l
64 .BR ldexpf (),
65 .BR ldexpl ():
66 .RS 4
67 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
68 _POSIX_C_SOURCE\ >=\ 200112L;
69 .br
70 or
71 .I cc\ -std=c99
72 .RE
73 .ad
74 .SH ÀâÌÀ
75 .BR ldexp ()
76 ´Ø¿ô¤Ï¡¢ÉâÆ°¾®¿ôÅÀ¼Â¿ô
77 .I x
78 ¤È 2 ¤Î
79 .I exp
80 ¾è¤È¤ÎÀѤòÊÖ¤¹¡£
81 .SH ÊÖ¤êÃÍ
82 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
83 .I "x * (2^exp)"
84 ¤òÊÖ¤¹¡£
85
86 .I exp
87 ¤¬¥¼¥í¤Î¾ì¹ç¡¢
88 .I x
89 ¤¬ÊÖ¤µ¤ì¤ë¡£
90
91 .I x
92 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
93
94 .I x
95 ¤¬Àµ¤Î̵¸ÂÂç (Éé¤Î̵¸ÂÂç) ¤Î¾ì¹ç¡¢
96 Àµ¤Î̵¸ÂÂç (Éé¤Î̵¸ÂÂç) ¤¬ÊÖ¤µ¤ì¤ë¡£
97
98 ·ë²Ì¤¬¥¢¥ó¥À¡¼¥Õ¥í¡¼¤¹¤ë¾ì¹ç¡¢
99 ÈÏ°Ï¥¨¥é¡¼ (range error) ¤¬È¯À¸¤·¡¢¥¼¥í¤¬ÊÖ¤µ¤ì¤ë¡£
100
101 ·ë²Ì¤¬¥ª¡¼¥Ð¡¼¥Õ¥í¡¼¤¹¤ë¾ì¹ç¡¢ÈÏ°Ï¥¨¥é¡¼¤¬È¯À¸¤·¡¢
102 ³Æ´Ø¿ô¤Ï¤½¤ì¤¾¤ì
103 .BR HUGE_VAL ,
104 .BR HUGE_VALF ,
105 .B HUGE_VALL
106 ¤òÊÖ¤¹¡£ÊÖ¤êÃͤÎÉä¹æ¤Ï
107 .I x
108 ¤ÈƱ¤¸¤È¤Ê¤ë¡£
109 .SH ¥¨¥é¡¼
110 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
111 .BR math_error (7)
112 ¤ò»²¾È¤Î¤³¤È¡£
113 .PP
114 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
115 .TP
116 ÈÏ°Ï¥¨¥é¡¼: ·ë²Ì¤Î¥ª¡¼¥Ð¡¼¥Õ¥í¡¼
117 .I errno
118 ¤Ë
119 .B ERANGE
120 ¤¬ÀßÄꤵ¤ì¤ë¡£
121 ¥ª¡¼¥Ð¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°
122 .RB ( FE_OVERFLOW )
123 ¤¬¾å¤¬¤ë¡£
124 .TP
125 ÈÏ°Ï¥¨¥é¡¼: ·ë²Ì¤Î¥¢¥ó¥À¡¼¥Õ¥í¡¼
126 .I errno
127 ¤Ë
128 .B ERANGE
129 ¤¬ÀßÄꤵ¤ì¤ë¡£
130 ¥¢¥ó¥À¡¼¥Õ¥í¡¼ÉâÆ°¾®¿ôÅÀÎã³°
131 .RB ( FE_UNDERFLOW )
132 ¤¬¾å¤¬¤ë¡£
133 .SH ½àµò
134 C99, POSIX.1-2001.
135 .I double
136 ÈǤδؿô¤Ï SVr4, 4.3BSD, C89 ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
137 .SH ´ØÏ¢¹àÌÜ
138 .BR frexp (3),
139 .BR modf (3),
140 .BR scalbln (3)