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="frexp">\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>frexp</refentrytitle>\r | |
13 | <manvolnum>3G</manvolnum>\r | |
14 | </refmeta>\r | |
15 | <refnamediv>\r | |
16 | <refname>frexp</refname>\r | |
17 | <refpurpose>split a floating point number</refpurpose>\r | |
18 | </refnamediv>\r | |
19 | <refsynopsisdiv><title>Declaration</title>\r | |
20 | <funcsynopsis>\r | |
21 | <funcprototype>\r | |
22 | <funcdef>genType <function>frexp</function></funcdef>\r | |
23 | <paramdef>genType <parameter>x</parameter></paramdef>\r | |
24 | <paramdef>out genIType <parameter>exp</parameter></paramdef>\r | |
25 | </funcprototype>\r | |
26 | <funcprototype>\r | |
27 | <funcdef>genDType <function>frexp</function></funcdef>\r | |
28 | <paramdef>genDType <parameter>x</parameter></paramdef>\r | |
29 | <paramdef>out 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 from which significand and exponent are to be extracted.\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 variable into which to place the 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>frexp</function> extracts <parameter>x</parameter> into a floating-point significand\r | |
56 | in the range [0.5, 1.0) and in integral exponent of two, such that:\r | |
57 | </para>\r | |
58 | <para>\r | |
59 | <inlineequation><mml:math>\r | |
60 | <mml:mi>x</mml:mi>\r | |
61 | <mml:mo>=</mml:mo>\r | |
62 | <mml:mi>significand</mml:mi>\r | |
63 | <mml:mo lspace='2px' rspace='2px'>⋅</mml:mo>\r | |
64 | <mml:msup>\r | |
65 | <mml:mn>2</mml:mn>\r | |
66 | <mml:mi>exponent</mml:mi>\r | |
67 | </mml:msup>\r | |
68 | </mml:math></inlineequation>\r | |
69 | </para>\r | |
70 | <para>\r | |
71 | The significand is returned by the function and the exponent is returned in the output\r | |
72 | parameter <parameter>exp</parameter>. For a floating-point value of zero, the\r | |
73 | significand and exponent are both zero. For a floating-point value that is an\r | |
74 | infinity or a floating-point NaN, the results are undefined.\r | |
75 | </para>\r | |
76 | </refsect1>\r | |
77 | <refsect1 id="versions"><title>Version Support</title>\r | |
78 | <informaltable frame="topbot">\r | |
79 | #VARTABLECOLS#\r | |
80 | <thead>\r | |
81 | #FUNCTABLEHEADER#\r | |
82 | <row>\r | |
83 | <entry>frexp (genType)</entry>#newin40#\r | |
84 | </row>\r | |
85 | <row>\r | |
86 | <entry>frexp (genDType)</entry>#newin40#\r | |
87 | </row>\r | |
88 | </thead>\r | |
89 | </tgroup>\r | |
90 | </informaltable>\r | |
91 | </refsect1>\r | |
92 | <refsect1 id="seealso"><title>See Also</title>\r | |
93 | <para>\r | |
94 | <citerefentry><refentrytitle>ldexp</refentrytitle></citerefentry>\r | |
95 | </para>\r | |
96 | </refsect1>\r | |
97 | <refsect1 id="Copyright"><title>Copyright</title>\r | |
98 | <para>\r | |
99 | Copyright <trademark class="copyright"></trademark> 2011 Khronos Group. \r | |
100 | This material may be distributed subject to the terms and conditions set forth in \r | |
101 | the Open Publication License, v 1.0, 8 June 1999.\r | |
102 | <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r | |
103 | </para>\r | |
104 | </refsect1>\r | |
105 | </refentry>\r |