P4010R1 — Add funnel shift operations to bit header
Daniel Towner
LEWGSG6
Revisions R1Apr 2026R0Feb 2026
This paper proposes adding funnel shift operations to the C++ standard library. Funnel shifts concatenate two integer values, shift the concatenated result, and extract bits. This is a fundamental primitive bit operation with widespread use across many domains including cryptography, hashing, compression, and pseudo-random number generation.