From 417081d1306e5789cacec6c0ffdf0202f4bbba14 Mon Sep 17 00:00:00 2001 From: David Zarzycki Date: Wed, 21 Aug 2019 06:48:11 +0000 Subject: [PATCH] [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369496 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LanguageExtensions.rst | 50 +------------------------------------ 1 file changed, 1 insertion(+), 49 deletions(-) diff --git a/docs/LanguageExtensions.rst b/docs/LanguageExtensions.rst index 67cdbb7da9..3eadb9d098 100644 --- a/docs/LanguageExtensions.rst +++ b/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. -- 2.40.0