This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 117b. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-08-11
2724. Clarify rounding for arithmetic right shiftSection: 7.6.7 [expr.shift] Status: DRWP Submitter: Jan Schultke Date: 2023-04-07[Accepted as a DR at the June, 2023 meeting.]
(From editorial issue 6225.)
Subclause 7.6.7 [expr.shift] paragraph 3 specifies:
The value of E1 >> E2 is E1/2E2, rounded down.
It is unclear whether "rounded down" means "towards zero" or "towards negative infinity".
Proposed resolution (approved by CWG 2023-05-12):
Change in 7.6.7 [expr.shift] paragraph 3 as follows:
The value of E1 >> E2 is E1/2E2, rounded down towards negative infinity.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4