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">
9 <holder>Khronos Group
</holder>
12 <refentrytitle>uaddCarry
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>uaddCarry
</refname>
17 <refpurpose>add unsigned integers and generate carry
</refpurpose>
19 <refsynopsisdiv><title>Declaration
</title>
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>
29 <refsect1 id=
"parameters"><title>Parameters
</title>
32 <term><parameter>x
</parameter></term>
35 Specifies the first vector to be used in the summation operation.
40 <term><parameter>y
</parameter></term>
43 Specifies the second vector to be used in the summation operation.
48 <term><parameter>carry
</parameter></term>
51 Specifies the variable to receive the carry output of the sum.
57 <refsect1 id=
"description"><title>Description
</title>
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>
67 <refsect1 id=
"versions"><title>Version Support
</title>
68 <informaltable frame=
"topbot">
73 <entry>uaddCarry
</entry>#newin40#
79 <refsect1 id=
"seealso"><title>See Also
</title>
81 <citerefentry><refentrytitle>usubBorrow
</refentrytitle></citerefentry>
84 <refsect1 id=
"Copyright"><title>Copyright
</title>
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>.