Skip to content

Commit f9efe5a

Browse files
committed
[LangRef] Correct documentation for roundeven
Langref for `roundeven` implies that the C standard function `roundeven` may raise floating point exceptions. However, this is not correct; C23 does not mention exceptions for `roundeven`, and per [1] `FE_INEXACT` is never raised. Clarify that LLVM's `roundeven` behaves the same. [1]: https://en.cppreference.com/w/c/numeric/math/roundeven
1 parent 09d945d commit f9efe5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/docs/LangRef.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17255,8 +17255,8 @@ Semantics:
1725517255
""""""""""
1725617256

1725717257
This function implements IEEE-754 operation ``roundToIntegralTiesToEven``. It
17258-
also behaves in the same way as C standard function ``roundeven``, except that
17259-
it does not raise floating point exceptions.
17258+
also behaves in the same way as C standard function ``roundeven``, including
17259+
that it disregards rounding mode and does not raise floating point exceptions.
1726017260

1726117261

1726217262
'``llvm.lround.*``' Intrinsic

0 commit comments

Comments
 (0)