File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -15751,7 +15751,11 @@ Semantics:
15751
15751
""""""""""
15752
15752
15753
15753
This function returns the same values as the libm ``rint`` functions
15754
- would, and handles error conditions in the same way.
15754
+ would, and handles error conditions in the same way. Since LLVM assumes the
15755
+ :ref:`default floating-point environment <floatenv>`, the rounding mode is
15756
+ assumed to be set to "nearest", so halfway cases are rounded to the even
15757
+ integer. Use :ref:`Constrained Floating-Point Intrinsics <constrainedfp>`
15758
+ to avoid that assumption.
15755
15759
15756
15760
.. _int_nearbyint:
15757
15761
@@ -15789,7 +15793,11 @@ Semantics:
15789
15793
""""""""""
15790
15794
15791
15795
This function returns the same values as the libm ``nearbyint``
15792
- functions would, and handles error conditions in the same way.
15796
+ functions would, and handles error conditions in the same way. Since LLVM
15797
+ assumes the :ref:`default floating-point environment <floatenv>`, the rounding
15798
+ mode is assumed to be set to "nearest", so halfway cases are rounded to the even
15799
+ integer. Use :ref:`Constrained Floating-Point Intrinsics <constrainedfp>` to
15800
+ avoid that assumption.
15793
15801
15794
15802
.. _int_round:
15795
15803
You can’t perform that action at this time.
0 commit comments