OSDN Git Service

c218956a699aa0f654622de63837948a707398e7
[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 .\" %%%LICENSE_START(VERBATIM)
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
9 .\"
10 .\" Permission is granted to copy and distribute modified versions of this
11 .\" manual under the conditions for verbatim copying, provided that the
12 .\" entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one.
14 .\"
15 .\" Since the Linux kernel and libraries are constantly changing, this
16 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
17 .\" responsibility for errors or omissions, or for damages resulting from
18 .\" the use of the information contained herein.  The author(s) may not
19 .\" have taken the same level of care in the production of this manual,
20 .\" which is licensed free of charge, as they might when working
21 .\" professionally.
22 .\"
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" %%%LICENSE_END
26 .\"
27 .\" References consulted:
28 .\"     Linux libc source code
29 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
30 .\"     386BSD man pages
31 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
32 .\" Modified 2004-10-31 by aeb
33 .\"
34 .\"*******************************************************************
35 .\"
36 .\" This file was generated with po4a. Translate the source file.
37 .\"
38 .\"*******************************************************************
39 .\"
40 .\" Japanese Version Copyright (c) 1997 YOSHINO Takashi
41 .\"       all rights reserved.
42 .\" Translated Thu Feb 13 23:14:00 JST 1997
43 .\"       by YOSHINO Takashi <yoshino@civil.jcn.nihon-u.ac.jp>
44 .\" Updated & Modified Sun Jun  6 10:35:26 JST 2004
45 .\"       by Yuichi SATO <ysato444@yahoo.co.jp>
46 .\" Updated & Modified Sat Jan 15 05:40:56 JST 2005 by Yuichi SATO
47 .\" Updated 2008-09-18, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
48 .\"
49 .TH LDEXP 3 2013\-08\-19 "" "Linux Programmer's Manual"
50 .SH 名前
51 ldexp, ldexpf, ldexpl \- 浮動小数点実数と 2 の整数乗との積を計算する
52 .SH 書式
53 .nf
54 \fB#include <math.h>\fP
55 .sp
56 \fBdouble ldexp(double \fP\fIx\fP\fB, int \fP\fIexp\fP\fB);\fP
57 .br
58 \fBfloat ldexpf(float \fP\fIx\fP\fB, int \fP\fIexp\fP\fB);\fP
59 .br
60 \fBlong double ldexpl(long double \fP\fIx\fP\fB, int \fP\fIexp\fP\fB);\fP
61 .fi
62 .sp
63 \fI\-lm\fP でリンクする。
64 .sp
65 .in -4n
66 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
67 .in
68 .sp
69 .ad l
70 \fBldexpf\fP(), \fBldexpl\fP():
71 .RS 4
72 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE
73 || _POSIX_C_SOURCE\ >=\ 200112L;
74 .br
75 or \fIcc\ \-std=c99\fP
76 .RE
77 .ad
78 .SH 説明
79 \fBldexp\fP()  関数は、浮動小数点実数 \fIx\fP と 2 の \fIexp\fP 乗との積を返す。
80 .SH 返り値
81 成功すると、これらの関数は \fIx * (2^exp)\fP を返す。
82
83 \fIexp\fP がゼロの場合、 \fIx\fP が返される。
84
85 \fIx\fP が NaN の場合、NaN が返される。
86
87 \fIx\fP が正の無限大 (負の無限大) の場合、正の無限大 (負の無限大) が返される。
88
89 結果がアンダーフローする場合、 範囲エラー (range error) が発生し、0 が返される。
90
91 結果がオーバーフローする場合、 範囲エラー (range error) が発生し、 各関数はそれぞれ \fBHUGE_VAL\fP,
92 \fBHUGE_VALF\fP, \fBHUGE_VALL\fP を返す。符号は \fIx\fP と同じになる。
93 .SH エラー
94 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は \fBmath_error\fP(7)  を参照のこと。
95 .PP
96 以下のエラーが発生する可能性がある。
97 .TP 
98 範囲エラー (range error)、オーバーフローの場合
99 \fIerrno\fP に \fBERANGE\fP が設定される。 オーバーフロー浮動小数点例外 (\fBFE_OVERFLOW\fP)  が上がる。
100 .TP 
101 範囲エラー (range error)、アンダーフローの場合
102 \fIerrno\fP に \fBERANGE\fP が設定される。 アンダーフロー浮動小数点例外 (\fBFE_UNDERFLOW\fP)  が上がる。
103 .SH 属性
104 .SS "マルチスレッディング (pthreads(7) 参照)"
105 The \fBldexp\fP(), \fBldexpf\fP(), and \fBldexpl\fP()  functions are thread\-safe.
106 .SH 準拠
107 C99, POSIX.1\-2001.  \fIdouble\fP 版の関数は SVr4, 4.3BSD, C89 にも準拠している。
108 .SH 関連項目
109 \fBfrexp\fP(3), \fBmodf\fP(3), \fBscalbln\fP(3)
110 .SH この文書について
111 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
112 である。プロジェクトの説明とバグ報告に関する情報は
113 http://www.kernel.org/doc/man\-pages/ に書かれている。