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

Unified Diff: native_client_sdk/src/doc/reference/pnacl-undefined-behavior.rst

Issue 250433002: PNaCl documentation: add SIMD vectors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address dschuff's comments. Created 6 years, 8 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
Index: native_client_sdk/src/doc/reference/pnacl-undefined-behavior.rst
diff --git a/native_client_sdk/src/doc/reference/pnacl-undefined-behavior.rst b/native_client_sdk/src/doc/reference/pnacl-undefined-behavior.rst
index 30d95f91fbf2ddbc21648d30e824af3c5fcdc638..7ab270abece67c9550f627a61e943b5916f9bdaa 100644
--- a/native_client_sdk/src/doc/reference/pnacl-undefined-behavior.rst
+++ b/native_client_sdk/src/doc/reference/pnacl-undefined-behavior.rst
@@ -177,6 +177,18 @@ sources of undefined behavior which are believed to be fixable:
function implementation isn't, e.g. ``std::min`` and ``std::max``), is
well-defined in the *pexe*.
+SIMD Vectors
+^^^^^^^^^^^^
+
+SIMD vector instructions aren't part of the C/C++ standards and as such
+their behavior isn't specified at all in C/C++; it is usually left up to
+the target architecture to specify behavior. Portable Native Client
+instead exposed :ref:`Portable SIMD Vectors <portable_simd_vectors>` and
+offers the same guarantees on these vectors as the guarantees offered by
+the contained elements. Of notable interest amongst these guarantees are
+those of alignment for load/store instructions on vectors: they have the
+same alignment restriction as the contained elements.
+
Hard to Fix
^^^^^^^^^^^

Powered by Google App Engine
This is Rietveld 408576698