+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>\r
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"\r
- "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">\r
-<refentry id="usubBorrow">\r
- <refmeta>\r
- <refmetainfo>\r
- <copyright>\r
- <year>2011</year>\r
- <holder>Khronos Group</holder>\r
- </copyright>\r
- </refmetainfo>\r
- <refentrytitle>usubBorrow</refentrytitle>\r
- <manvolnum>3G</manvolnum>\r
- </refmeta>\r
- <refnamediv>\r
- <refname>usubBorrow</refname>\r
- <refpurpose>subtract unsigned integers and generate borrow</refpurpose>\r
- </refnamediv>\r
- <refsynopsisdiv><title>Declaration</title>\r
- <funcsynopsis>\r
- <funcprototype>\r
- <funcdef>genUType <function>usubBorrow</function></funcdef>\r
- <paramdef>genUType <parameter>x</parameter></paramdef>\r
- <paramdef>genUType <parameter>y</parameter></paramdef>\r
- <paramdef>out genUType <parameter>borrow</parameter></paramdef>\r
- </funcprototype>\r
- </funcsynopsis>\r
- </refsynopsisdiv>\r
- <refsect1 id="parameters"><title>Parameters</title>\r
- <variablelist>\r
- <varlistentry>\r
- <term><parameter>x</parameter></term>\r
- <listitem>\r
- <para>\r
- Specifies the first vector to be used in the subtraction operation.\r
- </para>\r
- </listitem>\r
- </varlistentry>\r
- <varlistentry>\r
- <term><parameter>y</parameter></term>\r
- <listitem>\r
- <para>\r
- Specifies the second vector to be used in the subtraction operation.\r
- </para>\r
- </listitem>\r
- </varlistentry>\r
- <varlistentry>\r
- <term><parameter>borrow</parameter></term>\r
- <listitem>\r
- <para>\r
- Specifies the variable to receive the borrow output of the difference.\r
- </para>\r
- </listitem>\r
- </varlistentry>\r
- </variablelist>\r
- </refsect1>\r
- <refsect1 id="description"><title>Description</title>\r
- <para>\r
- <function>usubBorrow</function> subtracts two 32-bit unsigned integer variables (scalars or vectors) and generates\r
- a 32-bit unsigned integer result, along with a borrow output. The result is the difference of <parameter>x</parameter> and\r
- <parameter>y</parameter> if non-negative, or <inlineequation><mml:math><mml:msup><mml:mn>2</mml:mn><mml:mn>32</mml:mn></mml:msup></mml:math></inlineequation>\r
- plus that difference otherwise.\r
- The value <parameter>borrow</parameter> is set to 0 if <parameter>x</parameter> ≥ <parameter>y</parameter> and to 1 otherwise.\r
- </para>\r
- </refsect1>\r
- <refsect1 id="versions"><title>Version Support</title>\r
- <informaltable frame="topbot">\r
- #VARTABLECOLS#\r
- <thead>\r
- #FUNCTABLEHEADER#\r
- <row>\r
- <entry>usubBorrow</entry>#newin40#\r
- </row>\r
- </thead>\r
- </tgroup>\r
- </informaltable>\r
- </refsect1>\r
- <refsect1 id="seealso"><title>See Also</title>\r
- <para>\r
- <citerefentry><refentrytitle>uaddCarry</refentrytitle></citerefentry>\r
- </para>\r
- </refsect1>\r
- <refsect1 id="Copyright"><title>Copyright</title>\r
- <para>\r
- Copyright <trademark class="copyright"></trademark> 2011 Khronos Group. \r
- This material may be distributed subject to the terms and conditions set forth in \r
- the Open Publication License, v 1.0, 8 June 1999.\r
- <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
- </para>\r
- </refsect1>\r
-</refentry>\r