Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: native_client_sdk/src/doc/reference/pnacl-bitcode-abi.rst

Issue 938673003: [NaClDocs] Add documentation for the PNaCl fabs intrinsic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « native_client_sdk/doc_generated/reference/pnacl-bitcode-abi.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/doc/reference/pnacl-bitcode-abi.rst
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 f5def1691a64fc8c50a077e25b39a84df37c85c9..2cc44dadd1effa65daaa786cc80dc97bb8a39ef8 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``
« no previous file with comments | « native_client_sdk/doc_generated/reference/pnacl-bitcode-abi.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698