Landing: 4ff92b02340c
Project / Subsystem
gcc / libstdc++
Date
2026-09-11
Author
Jakub Jelinek
Commit
4ff92b02340cfc54939d0411e057a7af20974d59
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- libstdc++
- patch_id
- —
- commit_hash
- 4ff92b02340cfc54939d0411e057a7af20974d59
- source_type
- github
- headline
- Libstdc++ implements C++29 P3793R2 - Better shifting.
- tldr
- Adds C++29 bitwise shifting operations (`shl`, `shr`) to the standard library's `<bit>` header.
- author
- Jakub Jelinek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • c++29
- • libstdc++
- • standard library
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-11T00:00:00.000Z
This commit implements the std::__signed_or_unsigned_integer and function templates std::shl and std::shr for more robust and expressive bitwise left and right shifts.