r369496 - [PPC Docs] Remove duplicate info about __builtin_setrnd()

David Zarzycki via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 20 23:48:11 PDT 2019


Author: davezarzycki
Date: Tue Aug 20 23:48:11 2019
New Revision: 369496

URL: http://llvm.org/viewvc/llvm-project?rev=369496&view=rev
Log:
[PPC Docs] Remove duplicate info about __builtin_setrnd()

This looks like a combination of a copy-and-paste (and paste and paste)
error and a commit without reviewing the diff first error.

Modified:
    cfe/trunk/docs/LanguageExtensions.rst

Modified: cfe/trunk/docs/LanguageExtensions.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/LanguageExtensions.rst?rev=369496&r1=369495&r2=369496&view=diff
==============================================================================
--- cfe/trunk/docs/LanguageExtensions.rst (original)
+++ cfe/trunk/docs/LanguageExtensions.rst Tue Aug 20 23:48:11 2019
@@ -2859,55 +2859,7 @@ PowerPC Language Extensions
 ------------------------------
 
 Set the Floating Point Rounding Mode
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-PowerPC64/PowerPC64le supports the builtin function ``__builtin_setrnd`` to set
-the floating point rounding mode. This function will use the least significant
-two bits of integer argument to set the floating point rounding mode.
-
-.. code-block:: c++
-
-  double __builtin_setrnd(int mode);
-
-The effective values for mode are:
-
-    - 0 - round to nearest
-    - 1 - round to zero
-    - 2 - round to +infinity
-    - 3 - round to -infinity
-
-Note that the mode argument will modulo 4, so if the int argument is greater
-than 3, it will only use the least significant two bits of the mode.
-Namely, ``__builtin_setrnd(102))`` is equal to ``__builtin_setrnd(2)``.
-
-PowerPC Language Extensions
-------------------------------
-
-Set the Floating Point Rounding Mode
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-PowerPC64/PowerPC64le supports the builtin function ``__builtin_setrnd`` to set
-the floating point rounding mode. This function will use the least significant
-two bits of integer argument to set the floating point rounding mode.
-
-.. code-block:: c++
-
-  double __builtin_setrnd(int mode);
-
-The effective values for mode are:
-
-    - 0 - round to nearest
-    - 1 - round to zero
-    - 2 - round to +infinity
-    - 3 - round to -infinity
-
-Note that the mode argument will modulo 4, so if the integer argument is greater
-than 3, it will only use the least significant two bits of the mode.
-Namely, ``__builtin_setrnd(102))`` is equal to ``__builtin_setrnd(2)``.
-
-PowerPC Language Extensions
-------------------------------
-
-Set the Floating Point Rounding Mode
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 PowerPC64/PowerPC64le supports the builtin function ``__builtin_setrnd`` to set
 the floating point rounding mode. This function will use the least significant
 two bits of integer argument to set the floating point rounding mode.




More information about the cfe-commits mailing list