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

Collin Funk collin.funk1@gmail.com
Wed Apr 1 03:11:51 GMT 2026


Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:

> 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 +++++
>  stdlib/Makefile                |   1 +
>  stdlib/tst-stdc_rotate_right.c | 457 +++++++++++++++++++++++++++++++++
>  3 files changed, 526 insertions(+)
>  create mode 100644 stdlib/tst-stdc_rotate_right.c

Looks good to me. I'll sync the test file into Gnulib later. It will
change paths and I might need to make minor changes to the file, so no
point in adding it to SHARED-FILES in this patch, in my opinion.

Likewise, I should probably add the other stdbit tests we use to
SHARED-FILES.

Reviewed-by: Collin Funk <collin.funk1@gmail.com>

Collin


More information about the Libc-alpha mailing list