[PATCH v4 1/2] stdlib: Add internal stdc_rotate_right implementation

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Tue Mar 31 20:04:33 GMT 2026



On 31/03/26 15:26, Joseph Myers wrote:
> On Tue, 31 Mar 2026, Adhemerval Zanella wrote:
> 
>> It follows the C2y N3367 proposed interface, along with some tests
>> imported from gnulib (and adapted to glibc libsupport).
>>
>> Checked on x86_64-linux-gnu and i686-linux-gnu.
>> ---
>>  include/stdbit.h               |  68 +++++
> 
> It seems odd to put this in the internal header rather than the installed 
> header (conditional on __GLIBC_USE (ISOC2Y)) and corresponding public 
> ABIs.
> 

Because the idea of this patch is to make it easier to integrate the
gnulib code, which aim to use its std_rotate_right instead of its old
bitrotate.h; and I do not want to commit to full C2y N3367 implementation
now.

I initially added the bitrotate.h and previous review asked to use
C2y N3367 definitions instead.



More information about the Libc-alpha mailing list