[glibc] stdlib: add missing stdc_rotate_right_ull alias when builtin is available
Uros Bizjak via Glibc-cvs <[email protected]> Wed, 6 May 2026 13:23:08 +0000 (GMT)
| Newsgroups | gmane.comp.lib.glibc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=79dbb41f159a4defe75f59a8f491d136236d1f7a commit 79dbb41f159a4defe75f59a8f491d136236d1f7a Author: Uros Bizjak <[email protected]> Date: Wed May 6 15:15:35 2026 +0200 stdlib: add missing stdc_rotate_right_ull alias when builtin is available When __builtin_stdc_rotate_right is supported, glibc defines type-specific aliases for several unsigned integer types (uc, us, ui, ul), but omits the unsigned long long variant. This leads to an inconsistency between the builtin-backed path and the generic fallback, where unsigned long long is handled. Add the missing stdc_rotate_right_ull macro mapping to stdc_rotate_right(__x, __n) to complete the set of type-specific helpers and ensure consistent API coverage across all supported unsigned integer types. No functional change for existing users; this only exposes the expected alias for unsigned long long. Fixes: 331c7a4cd0ee ("stdbit: Fix builtin name used in __glibc_has_builtin check for rotate_right") Signed-off-by: Uros Bizjak <[email protected]> Diff: --- include/stdbit.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/stdbit.h b/include/stdbit.h index 863b0f8383..d5aeada2b9 100644 --- a/include/stdbit.h +++ b/include/stdbit.h @@ -11,6 +11,7 @@ # define stdc_rotate_right_us(__x, __n) (stdc_rotate_right (__x, __n)) # define stdc_rotate_right_ui(__x, __n) (stdc_rotate_right (__x, __n)) # define stdc_rotate_right_ul(__x, __n) (stdc_rotate_right (__x, __n)) +# define stdc_rotate_right_ull(__x, __n) (stdc_rotate_right (__x, __n)) # else # if __WORDSIZE == 64 # define __ROR_UL_GENERIC __ror64_inline