1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../css/manpage.css" type="text/css" />
7    <title>Arithmetic Instructions</title>
8  </head>
9  <body>
10    <h1>Arithmetic Instructions</h1>
11    <h2>Description</h2>
12    <div class="section">
13      <p>Arithmetic instructions run arithmetic computations. All these instructions operate on the values of the x, y, z, and w components of the <CODE>src</CODE> operand after swizzling.</p>
14    </div>
15
16    <a name="function" id="function">
17      <h2>List of Instructions</h2>
18      <div class="section">
19        <table class="members">
20          <tr>
21            <th>
22              <a href="add.html"><CODE>add</CODE></a>
23            </th>
24            <th>Add</th>
25            <td>Calculates the sum of (A + B).</td>
26          </tr>
27          <tr>
28            <th>
29              <a href="dp3.html"><CODE>dp3</CODE></a>
30            </th>
31            <th>Three-component dot product</th>
32            <td>Calculates the dot product of three components.</td>
33          </tr>
34          <tr>
35            <th>
36              <a href="dp4.html"><CODE>dp4</CODE></a>
37            </th>
38            <th>Four-component dot product</th>
39            <td>Calculates the dot product of four components.</td>
40          </tr>
41          <tr>
42            <th>
43              <a href="dph.html"><CODE>dph</CODE></a>
44            </th>
45            <th>Homogeneous dot product</th>
46            <td>Calculates the sum of the dot product of three components plus the w component.</td>
47          </tr>
48          <tr>
49            <th>
50              <a href="dst.html"><CODE>dst</CODE></a>
51            </th>
52            <th>Distance vector</th>
53            <td>Calculates the distance vector.</td>
54          </tr>
55          <tr>
56            <th>
57              <a href="exp.html"><CODE>exp</CODE></a>
58            </th>
59            <th>Exponential base 2</th>
60            <td>Calculates a power of two.</td>
61          </tr>
62          <tr>
63            <th>
64              <a href="flr.html"><CODE>flr</CODE></a>
65            </th>
66            <th>Floor</th>
67            <td>Returns the largest integer under the specified value.</td>
68          </tr>
69          <tr>
70            <th>
71              <a href="litp.html"><CODE>litp</CODE></a>
72            </th>
73            <th>Light coefficients</th>
74            <td>Runs partial lighting calculations.</td>
75          </tr>
76          <tr>
77            <th>
78              <a href="log.html"><CODE>log</CODE></a>
79            </th>
80            <th>Logarithm base 2</th>
81            <td>Calculates a binary logarithm.</td>
82          </tr>
83          <tr>
84            <th>
85              <a href="mad.html"><CODE>mad</CODE></a>
86            </th>
87            <th>Multiply and add</th>
88            <td>Multiplies and adds (A * B + C).</td>
89          </tr>
90          <tr>
91            <th>
92              <a href="max.html"><CODE>max</CODE></a>
93            </th>
94            <th>Maximum</th>
95            <td>Returns the larger of two values.</td>
96          </tr>
97          <tr>
98            <th>
99              <a href="min.html"><CODE>min</CODE></a>
100            </th>
101            <th>Minimum</th>
102            <td>Returns the smaller of two values.</td>
103          </tr>
104          <tr>
105            <th>
106              <a href="mov.html"><CODE>mov</CODE></a>
107            </th>
108            <th>Move</th>
109            <td>Copies the content of a register.</td>
110          </tr>
111          <tr>
112            <th>
113              <a href="mova.html"><CODE>mova</CODE></a>
114            </th>
115            <th>Move to address register</th>
116            <td>Copies the content of a register to an address register.</td>
117          </tr>
118          <tr>
119            <th>
120              <a href="mul.html"><CODE>mul</CODE></a>
121            </th>
122            <th>Multiply</th>
123            <td>Multiplies (A * B).</td>
124          </tr>
125          <tr>
126            <th>
127              <a href="nop.html"><CODE>nop</CODE></a>
128            </th>
129            <th>No operation</th>
130            <td>The nop (No OPeration) instruction.</td>
131          </tr>
132          <tr>
133            <th>
134              <a href="rcp.html"><CODE>rcp</CODE></a>
135            </th>
136            <th>Reciprocal</th>
137            <td>Calculates the inverse.</td>
138          </tr>
139          <tr>
140            <th>
141              <a href="rsq.html"><CODE>rsq</CODE></a>
142            </th>
143            <th>Reciprocal square root</th>
144            <td>Calculates the inverse square root.</td>
145          </tr>
146          <tr>
147            <th>
148              <a href="sge.html"><CODE>sge</CODE></a>
149            </th>
150            <th>Set on greater than or equal</th>
151            <td>Returns 1 if the given value is greater than or equal to another value; otherwise, returns 0.</td>
152          </tr>
153          <tr>
154            <th>
155              <a href="slt.html"><CODE>slt</CODE></a>
156            </th>
157            <th>Set on less than</th>
158            <td>Returns 1 if the given value is less than another value; otherwise, returns 0.</td>
159          </tr>
160
161        </table>
162      </div>
163    </a>
164
165
166  <h2>Revision History</h2>
167  <div class="section">
168    <dl class="history">
169      <dt>2011/12/20</dt>
170      <dd>Initial version.<br />
171      </dd>
172    </dl>
173  </div>
174
175  <hr><p>CONFIDENTIAL</p></body>
176</html>
177