From: Uros Bizjak Date: Wed, 6 May 2026 13:15:35 +0000 (+0200) Subject: stdlib: add missing stdc_rotate_right_ull alias when builtin is available X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=79dbb41f159a4defe75f59a8f491d136236d1f7a;p=thirdparty%2Fglibc.git 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 --- 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