[PATCH] D68810: Document rounding for llvm.lround and llvm.lrint

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 13 12:30:35 PST 2019


efriedma added inline comments.


================
Comment at: llvm/docs/LangRef.rst:12788
 
-The '``llvm.lrint.*``' intrinsics returns the operand rounded to the
-nearest integer.
+The '``llvm.lrint.*``' intrinsics return the operand rounded to the nearest
+integer.
----------------
craig.topper wrote:
> Doesn't lrint use the current rounding mode?
Sort of?  I mean, in this context, we assume the "current rounding mode" is round-to-nearest-even.

Probably worth clarifying what we mean by "nearest" here.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68810/new/

https://reviews.llvm.org/D68810





More information about the llvm-commits mailing list