[PATCH] D40629: [LangRef] clarify semantics of the frem instruction
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 06:59:38 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL319437: [LangRef] clarify semantics of the frem instruction (authored by spatel).
Changed prior to commit:
https://reviews.llvm.org/D40629?vs=124850&id=124932#toc
Repository:
rL LLVM
https://reviews.llvm.org/D40629
Files:
llvm/trunk/docs/LangRef.rst
Index: llvm/trunk/docs/LangRef.rst
===================================================================
--- llvm/trunk/docs/LangRef.rst
+++ llvm/trunk/docs/LangRef.rst
@@ -6827,10 +6827,12 @@
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:
""""""""
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40629.124932.patch
Type: text/x-patch
Size: 833 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171130/b6cd664e/attachment.bin>
More information about the llvm-commits
mailing list