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="fma">\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>fma</refentrytitle>\r | |
13 | <manvolnum>3G</manvolnum>\r | |
14 | </refmeta>\r | |
15 | <refnamediv>\r | |
16 | <refname>fma</refname>\r | |
17 | <refpurpose>perform a fused multiply-add operation</refpurpose>\r | |
18 | </refnamediv>\r | |
19 | <refsynopsisdiv><title>Declaration</title>\r | |
20 | <funcsynopsis>\r | |
21 | <funcprototype>\r | |
22 | <funcdef>genType <function>fma</function></funcdef>\r | |
23 | <paramdef>genType <parameter>a</parameter></paramdef>\r | |
24 | <paramdef>genType <parameter>b</parameter></paramdef>\r | |
25 | <paramdef>genType <parameter>c</parameter></paramdef>\r | |
26 | </funcprototype>\r | |
27 | <funcprototype>\r | |
28 | <funcdef>genDType <function>fma</function></funcdef>\r | |
29 | <paramdef>genDType <parameter>a</parameter></paramdef>\r | |
30 | <paramdef>genDType <parameter>b</parameter></paramdef>\r | |
31 | <paramdef>genDType <parameter>c</parameter></paramdef>\r | |
32 | </funcprototype>\r | |
33 | </funcsynopsis>\r | |
34 | </refsynopsisdiv>\r | |
35 | <refsect1 id="parameters"><title>Parameters</title>\r | |
36 | <variablelist>\r | |
37 | <varlistentry>\r | |
38 | <term><parameter>a</parameter></term>\r | |
39 | <listitem>\r | |
40 | <para>\r | |
41 | Specifies the first multiplicand.\r | |
42 | </para>\r | |
43 | </listitem>\r | |
44 | </varlistentry>\r | |
45 | <varlistentry>\r | |
46 | <term><parameter>b</parameter></term>\r | |
47 | <listitem>\r | |
48 | <para>\r | |
49 | Specifies the second multiplicand.\r | |
50 | </para>\r | |
51 | </listitem>\r | |
52 | </varlistentry>\r | |
53 | <varlistentry>\r | |
54 | <term><parameter>c</parameter></term>\r | |
55 | <listitem>\r | |
56 | <para>\r | |
57 | Specifies the value to be added to the result.\r | |
58 | </para>\r | |
59 | </listitem>\r | |
60 | </varlistentry>\r | |
61 | </variablelist>\r | |
62 | </refsect1>\r | |
63 | <refsect1 id="description"><title>Description</title>\r | |
64 | <para>\r | |
65 | <function>fma</function> performs, where possible, a fused multiply-add operation,\r | |
66 | returning <code>a * b + c</code>.\r | |
67 | In use cases where the return value is eventually consumed by a variable declared as\r | |
68 | <code>precise</code>:\r | |
69 | <itemizedlist>\r | |
70 | <listitem><function>fma</function>() is considered a single operation, whereas the\r | |
71 | expression <code>a * b + c</code> consumed by a variable declared as <code>precise</code>\r | |
72 | is considered two operations.</listitem>\r | |
73 | <listitem>The precision of <function>fma</function>() can differ from the precision\r | |
74 | of the expression <code>a * b + c</code>.</listitem>\r | |
75 | <listitem><function>fma</function>() will be computed with the same precision as any\r | |
76 | other <function>fma</function>() consumed by a <code>precise</code> variable,\r | |
77 | giving invariant results for the same input values of <parameter>a</parameter>,\r | |
78 | <parameter>b</parameter> and <parameter>c</parameter>.</listitem>\r | |
79 | </itemizedlist>\r | |
80 | Otherwise, in the absense of <code>precise</code> consumption, there are no\r | |
81 | special constraints on the number of operations or difference in precision between\r | |
82 | <function>fma</function>() and the expression <code>a * b + c</code>.\r | |
83 | </para>\r | |
84 | </refsect1>\r | |
85 | <refsect1 id="versions"><title>Version Support</title>\r | |
86 | <informaltable frame="topbot">\r | |
87 | #VARTABLECOLS#\r | |
88 | <thead>\r | |
89 | #FUNCTABLEHEADER#\r | |
90 | <row>\r | |
91 | <entry>fma (genType)</entry>#newin11#\r | |
92 | </row>\r | |
93 | <row>\r | |
94 | <entry>fma (genDType)</entry>#newin40#\r | |
95 | </row>\r | |
96 | </thead>\r | |
97 | </tgroup>\r | |
98 | </informaltable>\r | |
99 | </refsect1>\r | |
100 | <refsect1 id="Copyright"><title>Copyright</title>\r | |
101 | <para>\r | |
102 | Copyright <trademark class="copyright"></trademark> 2011 Khronos Group. \r | |
103 | This material may be distributed subject to the terms and conditions set forth in \r | |
104 | the Open Publication License, v 1.0, 8 June 1999.\r | |
105 | <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r | |
106 | </para>\r | |
107 | </refsect1>\r | |
108 | </refentry>\r |