summaryrefslogtreecommitdiffstats
path: root/native_client_sdk
diff options
context:
space:
mode:
authorjvoung <jvoung@chromium.org>2015-02-25 12:13:14 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-25 20:13:59 +0000
commit2d8afa3cb4ce5df30b1fb6fdac93444242468ecf (patch)
tree127f8cb0e36022df3c805bd68068f860ddd4249a /native_client_sdk
parent0bd20bd071b18f094999263b377ee58173347567 (diff)
downloadchromium_src-2d8afa3cb4ce5df30b1fb6fdac93444242468ecf.zip
chromium_src-2d8afa3cb4ce5df30b1fb6fdac93444242468ecf.tar.gz
chromium_src-2d8afa3cb4ce5df30b1fb6fdac93444242468ecf.tar.bz2
[NaClDocs] Add documentation for the PNaCl fabs intrinsic.
BUG= https://code.google.com/p/nativeclient/issues/detail?id=4031 Review URL: https://codereview.chromium.org/938673003 Cr-Commit-Position: refs/heads/master@{#318100}
Diffstat (limited to 'native_client_sdk')
-rw-r--r--native_client_sdk/doc_generated/reference/pnacl-bitcode-abi.html18
-rw-r--r--native_client_sdk/src/doc/reference/pnacl-bitcode-abi.rst20
2 files changed, 28 insertions, 10 deletions
diff --git a/native_client_sdk/doc_generated/reference/pnacl-bitcode-abi.html b/native_client_sdk/doc_generated/reference/pnacl-bitcode-abi.html
index 6453709..6367b41 100644
--- a/native_client_sdk/doc_generated/reference/pnacl-bitcode-abi.html
+++ b/native_client_sdk/doc_generated/reference/pnacl-bitcode-abi.html
@@ -327,15 +327,23 @@ argument types: i16, i32, i64 (the types supported by C-style GCC builtins).</p>
<li><code>llvm.ctlz</code></li>
<li><code>llvm.cttz</code></li>
<li><p class="first"><code>llvm.ctpop</code></p>
-<p>The overloaded llvm.ctlz, llvm.cttz, and llvm.ctpop intrinsics are only
-supported with the i32 and i64 argument types (the types supported by
-C-style GCC builtins).</p>
+<p>The overloaded <code>llvm.ctlz</code>, <code>llvm.cttz</code>, and <code>llvm.ctpop</code> intrinsics
+are only supported with the i32 and i64 argument types (the types
+supported by C-style GCC builtins).</p>
+</li>
+<li><p class="first"><code>llvm.fabs</code></p>
+<p>The overloaded <code>llvm.fabs</code> intrinsic is supported for float, double and
+<code>&lt;4 x float&gt;</code> argument types. It returns the absolute value of
+the argument. Some notable points: it returns <code>+0.0</code> when given <code>-0.0</code>,
+<code>+inf</code> when given <code>-inf</code>, and a positive <code>NaN</code> when given any
+signed <code>NaN</code>.</p>
+<p>NOTE: This intrinsic was introduced in the pepper_42 SDK.</p>
</li>
<li><p class="first"><code>llvm.sqrt</code></p>
<p>The overloaded <code>llvm.sqrt</code> intrinsic is only supported for float
and double arguments types. This has the same semantics as the libc
-sqrt function, returning NaN for values less than -0.0. However, this
-does not set <code>errno</code> when the result is NaN (see the
+sqrt function, returning <code>NaN</code> for values less than <code>-0.0</code>.
+However, this does not set <code>errno</code> when the result is NaN (see the
<a class="reference internal" href="#ir-and-errno"><em>instructions and errno</em></a> section).</p>
</li>
<li><code>llvm.stacksave</code></li>
diff --git a/native_client_sdk/src/doc/reference/pnacl-bitcode-abi.rst b/native_client_sdk/src/doc/reference/pnacl-bitcode-abi.rst
index f5def16..2cc44da 100644
--- a/native_client_sdk/src/doc/reference/pnacl-bitcode-abi.rst
+++ b/native_client_sdk/src/doc/reference/pnacl-bitcode-abi.rst
@@ -430,16 +430,26 @@ The only intrinsics supported by PNaCl bitcode are the following.
* ``llvm.cttz``
* ``llvm.ctpop``
- The overloaded llvm.ctlz, llvm.cttz, and llvm.ctpop intrinsics are only
- supported with the i32 and i64 argument types (the types supported by
- C-style GCC builtins).
+ The overloaded ``llvm.ctlz``, ``llvm.cttz``, and ``llvm.ctpop`` intrinsics
+ are only supported with the i32 and i64 argument types (the types
+ supported by C-style GCC builtins).
+
+* ``llvm.fabs``
+
+ The overloaded ``llvm.fabs`` intrinsic is supported for float, double and
+ ``<4 x float>`` argument types. It returns the absolute value of
+ the argument. Some notable points: it returns ``+0.0`` when given ``-0.0``,
+ ``+inf`` when given ``-inf``, and a positive ``NaN`` when given any
+ signed ``NaN``.
+
+ NOTE: This intrinsic was introduced in the pepper_42 SDK.
* ``llvm.sqrt``
The overloaded ``llvm.sqrt`` intrinsic is only supported for float
and double arguments types. This has the same semantics as the libc
- sqrt function, returning NaN for values less than -0.0. However, this
- does not set ``errno`` when the result is NaN (see the
+ sqrt function, returning ``NaN`` for values less than ``-0.0``.
+ However, this does not set ``errno`` when the result is NaN (see the
:ref:`instructions and errno <ir_and_errno>` section).
* ``llvm.stacksave``