diff options
author | Sanjay Patel <spatel@rotateright.com> | 2017-11-30 14:59:03 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2017-11-30 14:59:03 +0000 |
commit | f7047551ddc1491807542160557aeb80dd700aa8 (patch) | |
tree | d3e1f18ed1c746272f157cde9bd69b5a92bbaf20 /docs | |
parent | 06cb6a98c1566d7867427453ad7bd22e49ab00cd (diff) |
[LangRef] clarify semantics of the frem instruction
As noted in D40594, the frem instruction corresponds to fmod() except that it can't set errno.
I modified the text that we currently use for intrinsics that map to libm functions and applied
it to frem.
Differential Revision: https://reviews.llvm.org/D40629
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319437 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/LangRef.rst | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/LangRef.rst b/docs/LangRef.rst index a091cc1dd2a..dbd45666777 100644 --- a/docs/LangRef.rst +++ b/docs/LangRef.rst @@ -6827,10 +6827,12 @@ Both arguments must have identical types. Semantics: """""""""" -This instruction returns the *remainder* of a division. The remainder -has the same sign as the dividend. This instruction can also take any -number of :ref:`fast-math flags <fastmath>`, which are optimization hints -to enable otherwise unsafe floating point optimizations: +Return the same value as a libm '``fmod``' function but without trapping or +setting ``errno``. + +The remainder has the same sign as the dividend. This instruction can also +take any number of :ref:`fast-math flags <fastmath>`, which are optimization +hints to enable otherwise unsafe floating-point optimizations: Example: """""""" |