OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[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 .\"*******************************************************************
33 .\"
34 .\" This file was generated with po4a. Translate the source file.
35 .\"
36 .\"*******************************************************************
37 .TH LDEXP 3 2010\-09\-20 "" "Linux Programmer's Manual"
38 .SH 名前
39 ldexp, ldexpf, ldexpl \- 浮動小数点実数と 2 の整数乗との積を計算する
40 .SH 書式
41 .nf
42 \fB#include <math.h>\fP
43 .sp
44 \fBdouble ldexp(double \fP\fIx\fP\fB, int \fP\fIexp\fP\fB);\fP
45 .br
46 \fBfloat ldexpf(float \fP\fIx\fP\fB, int \fP\fIexp\fP\fB);\fP
47 .br
48 \fBlong double ldexpl(long double \fP\fIx\fP\fB, int \fP\fIexp\fP\fB);\fP
49 .fi
50 .sp
51 \fI\-lm\fP でリンクする。
52 .sp
53 .in -4n
54 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
55 .in
56 .sp
57 .ad l
58 \fBldexpf\fP(), \fBldexpl\fP():
59 .RS 4
60 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE
61 || _POSIX_C_SOURCE\ >=\ 200112L;
62 .br
63 or \fIcc\ \-std=c99\fP
64 .RE
65 .ad
66 .SH 説明
67 \fBldexp\fP()  関数は、浮動小数点実数 \fIx\fP と 2 の \fIexp\fP 乗との積を返す。
68 .SH 返り値
69 成功すると、これらの関数は \fIx * (2^exp)\fP を返す。
70
71 \fIexp\fP がゼロの場合、 \fIx\fP が返される。
72
73 \fIx\fP が NaN の場合、NaN が返される。
74
75 \fIx\fP が正の無限大 (負の無限大) の場合、正の無限大 (負の無限大) が返される。
76
77 結果がアンダーフローする場合、 範囲エラー (range error) が発生し、0 が返される。
78
79 結果がオーバーフローする場合、 範囲エラー (range error) が発生し、 各関数はそれぞれ \fBHUGE_VAL\fP,
80 \fBHUGE_VALF\fP, \fBHUGE_VALL\fP を返す。符号は \fIx\fP と同じになる。
81 .SH エラー
82 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は \fBmath_error\fP(7)  を参照のこと。
83 .PP
84 以下のエラーが発生する可能性がある。
85 .TP 
86 範囲エラー (range error)、オーバーフローの場合
87 \fIerrno\fP に \fBERANGE\fP が設定される。 オーバーフロー浮動小数点例外 (\fBFE_OVERFLOW\fP)  が上がる。
88 .TP 
89 範囲エラー (range error)、アンダーフローの場合
90 \fIerrno\fP に \fBERANGE\fP が設定される。 アンダーフロー浮動小数点例外 (\fBFE_UNDERFLOW\fP)  が上がる。
91 .SH 準拠
92 C99, POSIX.1\-2001.  \fIdouble\fP 版の関数は SVr4, 4.3BSD, C89 にも準拠している。
93 .SH 関連項目
94 \fBfrexp\fP(3), \fBmodf\fP(3), \fBscalbln\fP(3)