rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / manglsl / uaddCarry.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4 <refentry id="uaddCarry">
5 <refmeta>
6 <refmetainfo>
7 <copyright>
8 <year>2011</year>
9 <holder>Khronos Group</holder>
10 </copyright>
11 </refmetainfo>
12 <refentrytitle>uaddCarry</refentrytitle>
13 <manvolnum>3G</manvolnum>
14 </refmeta>
15 <refnamediv>
16 <refname>uaddCarry</refname>
17 <refpurpose>add unsigned integers and generate carry</refpurpose>
18 </refnamediv>
19 <refsynopsisdiv><title>Declaration</title>
20 <funcsynopsis>
21 <funcprototype>
22 <funcdef>genUType <function>uaddCarry</function></funcdef>
23 <paramdef>genUType <parameter>x</parameter></paramdef>
24 <paramdef>genUType <parameter>y</parameter></paramdef>
25 <paramdef>out genUType <parameter>carry</parameter></paramdef>
26 </funcprototype>
27 </funcsynopsis>
28 </refsynopsisdiv>
29 <refsect1 id="parameters"><title>Parameters</title>
30 <variablelist>
31 <varlistentry>
32 <term><parameter>x</parameter></term>
33 <listitem>
34 <para>
35 Specifies the first vector to be used in the summation operation.
36 </para>
37 </listitem>
38 </varlistentry>
39 <varlistentry>
40 <term><parameter>y</parameter></term>
41 <listitem>
42 <para>
43 Specifies the second vector to be used in the summation operation.
44 </para>
45 </listitem>
46 </varlistentry>
47 <varlistentry>
48 <term><parameter>carry</parameter></term>
49 <listitem>
50 <para>
51 Specifies the variable to receive the carry output of the sum.
52 </para>
53 </listitem>
54 </varlistentry>
55 </variablelist>
56 </refsect1>
57 <refsect1 id="description"><title>Description</title>
58 <para>
59 <function>uaddCarry</function> adds two 32-bit unsigned integer variables (scalars or vectors) and generates
60 a 32-bit unsigned integer result, along with a carry output. The result is the sum of <parameter>x</parameter> and
61 <parameter>y</parameter> modulo <inlineequation><mml:math><mml:msup><mml:mn>2</mml:mn><mml:mn>32</mml:mn></mml:msup></mml:math></inlineequation>.
62 The value <parameter>carry</parameter> is set to 0 if the sum is less than
63 <inlineequation><mml:math><mml:msup><mml:mn>2</mml:mn><mml:mn>32</mml:mn></mml:msup></mml:math></inlineequation>
64 and to 1 otherwise.
65 </para>
66 </refsect1>
67 <refsect1 id="versions"><title>Version Support</title>
68 <informaltable frame="topbot">
69 #VARTABLECOLS#
70 <thead>
71 #FUNCTABLEHEADER#
72 <row>
73 <entry>uaddCarry</entry>#newin40#
74 </row>
75 </thead>
76 </tgroup>
77 </informaltable>
78 </refsect1>
79 <refsect1 id="seealso"><title>See Also</title>
80 <para>
81 <citerefentry><refentrytitle>usubBorrow</refentrytitle></citerefentry>
82 </para>
83 </refsect1>
84 <refsect1 id="Copyright"><title>Copyright</title>
85 <para>
86 Copyright <trademark class="copyright"></trademark> 2011 Khronos Group.
87 This material may be distributed subject to the terms and conditions set forth in
88 the Open Publication License, v 1.0, 8 June 1999.
89 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.
90 </para>
91 </refsect1>
92 </refentry>