diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-07-21 01:29:16 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-07-21 01:29:16 +0000 |
| commit | 8a8f2e5a010a0e38211a095e420207d52864ee94 (patch) | |
| tree | 18d6341616fbe5c3a76ce1c13d0fe0c295182bfa /llvm/docs | |
| parent | 15527113abb1358b05ab079a43b8f8eb71b31711 (diff) | |
| download | bcm5719-llvm-8a8f2e5a010a0e38211a095e420207d52864ee94.tar.gz bcm5719-llvm-8a8f2e5a010a0e38211a095e420207d52864ee94.zip | |
llvm.sqrt somehow escaped documentation.
llvm-svn: 22490
Diffstat (limited to 'llvm/docs')
| -rw-r--r-- | llvm/docs/LangRef.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html index 73e7e2db1fa..6206d774a07 100644 --- a/llvm/docs/LangRef.html +++ b/llvm/docs/LangRef.html @@ -143,6 +143,8 @@ <li><a href="#i_memmove">'<tt>llvm.memmove</tt>' Intrinsic</a></li> <li><a href="#i_memset">'<tt>llvm.memset</tt>' Intrinsic</a></li> <li><a href="#i_isunordered">'<tt>llvm.isunordered</tt>' Intrinsic</a></li> + <li><a href="#i_sqrt">'<tt>llvm.sqrt</tt>' Intrinsic</a></li> + </ol> </li> <li><a href="#int_count">Bit counting Intrinsics</a> @@ -3133,6 +3135,41 @@ false. </div> +<!-- _______________________________________________________________________ --> +<div class="doc_subsubsection"> + <a name="i_sqrt">'<tt>llvm.sqrt</tt>' Intrinsic</a> +</div> + +<div class="doc_text"> + +<h5>Syntax:</h5> +<pre> + declare <float or double> %llvm.sqrt(<float or double> Val) +</pre> + +<h5>Overview:</h5> + +<p> +The '<tt>llvm.sqrt</tt>' intrinsic returns the sqrt of the specified operand, +returning the same value as the libm '<tt>sqrt</tt>' function would. Unlike +<tt>sqrt</tt> in libm, however, <tt>llvm.sqrt</tt> has undefined behavior for +negative numbers (which allows for better optimization). +</p> + +<h5>Arguments:</h5> + +<p> +The argument and return value are floating point numbers of the same type. +</p> + +<h5>Semantics:</h5> + +<p> +This function returns the sqrt of the specified operand if it is a positive +floating point number. +</p> +</div> + <!-- ======================================================================= --> <div class="doc_subsection"> <a name="int_count">Bit Counting Intrinsics</a> |

