From ad0c7da95373a052f282596f736e35417b2fa65b Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Fri, 21 Feb 2025 08:24:59 -0800 Subject: [PATCH] [libc] Add missing stdc_first_trailing_zero_ to stdbit.yaml (#128101) These declarations were missing in the generated header. Make sure to add them, otherwise inclusion fails, since the subsequently included "stdbit-macros.h" expects these declarations to be present. Co-authored-by: Alexey Samsonov --- libc/include/stdbit.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/libc/include/stdbit.yaml b/libc/include/stdbit.yaml index e9bd6b3918e7..8a0ad65c6e8e 100644 --- a/libc/include/stdbit.yaml +++ b/libc/include/stdbit.yaml @@ -245,6 +245,36 @@ functions: return_type: unsigned int arguments: - type: unsigned short + - name: stdc_first_trailing_zero_uc + standards: + - stdc + return_type: unsigned int + arguments: + - type: unsigned char + - name: stdc_first_trailing_zero_ui + standards: + - stdc + return_type: unsigned int + arguments: + - type: unsigned int + - name: stdc_first_trailing_zero_ul + standards: + - stdc + return_type: unsigned int + arguments: + - type: unsigned long + - name: stdc_first_trailing_zero_ull + standards: + - stdc + return_type: unsigned int + arguments: + - type: unsigned long long + - name: stdc_first_trailing_zero_us + standards: + - stdc + return_type: unsigned int + arguments: + - type: unsigned short - name: stdc_has_single_bit_uc standards: - stdc