diff options
| author | David Zarzycki <dave@znu.io> | 2019-08-21 06:48:11 +0000 |
|---|---|---|
| committer | David Zarzycki <dave@znu.io> | 2019-08-21 06:48:11 +0000 |
| commit | b08884554f681f797274192ddd2dfbb93ffede59 (patch) | |
| tree | 8e8794edc988d51e216530ffce8cd183ae6270ca | |
| parent | 93a3cbc746826bdcf539a22809e7297e1443a5b8 (diff) | |
| download | bcm5719-llvm-b08884554f681f797274192ddd2dfbb93ffede59.tar.gz bcm5719-llvm-b08884554f681f797274192ddd2dfbb93ffede59.zip | |
[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.
llvm-svn: 369496
| -rw-r--r-- | clang/docs/LanguageExtensions.rst | 50 |
1 files changed, 1 insertions, 49 deletions
diff --git a/clang/docs/LanguageExtensions.rst b/clang/docs/LanguageExtensions.rst index 67cdbb7da94..3eadb9d0981 100644 --- a/clang/docs/LanguageExtensions.rst +++ b/clang/docs/LanguageExtensions.rst @@ -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. |

