Commit | Line | Data |
---|---|---|
7faf1d71 AW |
1 | <?xml version="1.0" encoding="UTF-8"?>\r |
2 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"\r | |
3 | "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">\r | |
4 | <refentry id="ldexp">\r | |
5 | <refmeta>\r | |
6 | <refmetainfo>\r | |
7 | <copyright>\r | |
8 | <year>2011</year>\r | |
9 | <holder>Khronos Group</holder>\r | |
10 | </copyright>\r | |
11 | </refmetainfo>\r | |
12 | <refentrytitle>ldexp</refentrytitle>\r | |
13 | <manvolnum>3G</manvolnum>\r | |
14 | </refmeta>\r | |
15 | <refnamediv>\r | |
16 | <refname>ldexp</refname>\r | |
17 | <refpurpose>assemble a floating point number from a value and exponent</refpurpose>\r | |
18 | </refnamediv>\r | |
19 | <refsynopsisdiv><title>Declaration</title>\r | |
20 | <funcsynopsis>\r | |
21 | <funcprototype>\r | |
22 | <funcdef>genType <function>ldexp</function></funcdef>\r | |
23 | <paramdef>genType <parameter>x</parameter></paramdef>\r | |
24 | <paramdef>genIType <parameter>exp</parameter></paramdef>\r | |
25 | </funcprototype>\r | |
26 | <funcprototype>\r | |
27 | <funcdef>genDType <function>ldexp</function></funcdef>\r | |
28 | <paramdef>genDType <parameter>x</parameter></paramdef>\r | |
29 | <paramdef>genIType <parameter>exp</parameter></paramdef>\r | |
30 | </funcprototype>\r | |
31 | </funcsynopsis>\r | |
32 | </refsynopsisdiv>\r | |
33 | <refsect1 id="parameters"><title>Parameters</title>\r | |
34 | <variablelist>\r | |
35 | <varlistentry>\r | |
36 | <term><parameter>x</parameter></term>\r | |
37 | <listitem>\r | |
38 | <para>\r | |
39 | Specifies the value to be used as a source of significand.\r | |
40 | </para>\r | |
41 | </listitem>\r | |
42 | </varlistentry>\r | |
43 | <varlistentry>\r | |
44 | <term><parameter>out exp</parameter></term>\r | |
45 | <listitem>\r | |
46 | <para>\r | |
47 | Specifies the value to be used as a source of exponent.\r | |
48 | </para>\r | |
49 | </listitem>\r | |
50 | </varlistentry>\r | |
51 | </variablelist>\r | |
52 | </refsect1>\r | |
53 | <refsect1 id="description"><title>Description</title>\r | |
54 | <para>\r | |
55 | <function>ldexp</function> builds a floating point number from <parameter>x</parameter> and\r | |
56 | the corresponding integral exponent of two in <parameter>exp</parameter>, returning:\r | |
57 | </para>\r | |
58 | <para>\r | |
59 | <inlineequation><mml:math>\r | |
60 | <mml:mi>significand</mml:mi>\r | |
61 | <mml:mo lspace='2px' rspace='2px'>⋅</mml:mo>\r | |
62 | <mml:msup>\r | |
63 | <mml:mn>2</mml:mn>\r | |
64 | <mml:mi>exponent</mml:mi>\r | |
65 | </mml:msup>\r | |
66 | </mml:math></inlineequation>\r | |
67 | </para>\r | |
68 | <para>\r | |
69 | If this product is too large to be represented in the floating point type, the result\r | |
70 | is undefined.\r | |
71 | </para>\r | |
72 | </refsect1>\r | |
73 | <refsect1 id="versions"><title>Version Support</title>\r | |
74 | <informaltable frame="topbot">\r | |
75 | #VARTABLECOLS#\r | |
76 | <thead>\r | |
77 | #FUNCTABLEHEADER#\r | |
78 | <row>\r | |
79 | <entry>ldexp (genType)</entry>#newin40#\r | |
80 | </row>\r | |
81 | <row>\r | |
82 | <entry>ldexp (genDType)</entry>#newin40#\r | |
83 | </row>\r | |
84 | </thead>\r | |
85 | </tgroup>\r | |
86 | </informaltable>\r | |
87 | </refsect1>\r | |
88 | <refsect1 id="seealso"><title>See Also</title>\r | |
89 | <para>\r | |
90 | <citerefentry><refentrytitle>frexp</refentrytitle></citerefentry>\r | |
91 | </para>\r | |
92 | </refsect1>\r | |
93 | <refsect1 id="Copyright"><title>Copyright</title>\r | |
94 | <para>\r | |
95 | Copyright <trademark class="copyright"></trademark> 2011 Khronos Group. \r | |
96 | This material may be distributed subject to the terms and conditions set forth in \r | |
97 | the Open Publication License, v 1.0, 8 June 1999.\r | |
98 | <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r | |
99 | </para>\r | |
100 | </refsect1>\r | |
101 | </refentry>\r |