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 <link rel="stylesheet" href="../css/timetable.css" type="text/css" /> 8 <title>rsq - Reciprocal square root</title> 9 </head> 10 <body> 11 <h1>rsq - Reciprocal square root</h1> 12 13 <h2>Calling Format</h2> 14 <div class="section"> 15 <pre class="definition"> 16rsq dest, src{ .x | .y | .z | .w } 17</pre> 18 </div> 19 20 <h2>Operands</h2> 21 <div class="section"> 22 <table class="arguments"> 23 <thead> 24 <tr> 25 <th>Name</th> 26 <td>Registers</td> 27 </tr> 28 </thead> 29 <tr> 30 <th>dest</th> 31 <td>An output register or temporary register.</td> 32 </tr> 33 <tr> 34 <th>src</th> 35 <td>A temporary register, input register, or floating-point constant register.</td> 36 </tr> 37 </table> 38 <p class="notice"> 39 Only one component must be specified for <SPAN class="argument">src</SPAN>.<BR> 40 </p> 41 </div> 42 43 <h2>Overview</h2> 44 <div class="section"> 45 <p> 46 Calculates the inverse square root.<BR> <br> If the result of the operation is positive or negative infinity, <CODE>NaN</CODE> may be output. <br>Use the <a href="../flowcntl/cmp.html">cmp</a> instruction if you need to distinguish between <CODE>NaN</CODE> and positive or negative infinity.<BR> 47 </p> 48 </div> 49 50 <h2>Operation</h2> 51 <div class="section"> 52<pre class="definition"> 53tmp = src { .x | .y | .z | .w } 54dest.x = 1 / sqrt ( tmp ) 55dest.y = 1 / sqrt ( tmp ) 56dest.z = 1 / sqrt ( tmp ) 57dest.w = 1 / sqrt ( tmp ) 58</pre> 59 </div> 60 61 <h2>Code Example</h2> 62 <div class="section"> 63<pre class="definition"> 64rsq r0, c1.x 65</pre> 66 </div> 67 68 <h2>Timetable</h2> 69 <div class="section"> 70 <table class="timetable"> 71 <tr> 72 <th></th> 73 <th>1</th><th>2</th><th>3</th><th>4</th><th>5</th> 74 </tr> 75 <tr> 76 <th>rsq</th> 77 <td class="read">read</td> 78 <td class="RSQ" colspan="2">RCP / RSQ</td> 79 <td class="post">post</td> 80 <td class="write">write</td> 81 <td class="dummy"></td> 82 </tr> 83 </table> 84 </div> 85 86 87 <h2>Revision History</h2> 88 <div class="section"> 89 <dl class="history"> 90 <dt>2011/12/20</dt> 91 <dd>Initial version.<br /> 92 </dd> 93 </dl> 94 </div> 95 96 <hr><p>CONFIDENTIAL</p></body> 97</html>