[libc-commits] [libc] [libc] Add missing stdc_first_trailing_zero_ to stdbit.yaml (PR #128101)
Alexey Samsonov via libc-commits
libc-commits at lists.llvm.org
Thu Feb 20 17:03:45 PST 2025
https://github.com/vonosmas created https://github.com/llvm/llvm-project/pull/128101
These declarations were missing in the generated header. Make sure to add them, otherwise <stdbit.h> inclusion fails, since the subsequently included "stdbit-macros.h" expects these declarations to be present.
>From bcf8aa4bd17f49c77a02c89bb6099dc86674035f Mon Sep 17 00:00:00 2001
From: Alexey Samsonov <samsonov at google.com>
Date: Thu, 20 Feb 2025 17:00:28 -0800
Subject: [PATCH] [libc] Add missing stdc_first_trailing_zero_ to stdbit.yaml
These declarations were missing in the generated header. Make sure to
add them, otherwise <stdbit.h> inclusion fails, since the subsequently
included "stdbit-macros.h" expects these declarations to be present.
---
libc/include/stdbit.yaml | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/libc/include/stdbit.yaml b/libc/include/stdbit.yaml
index e9bd6b3918e78..8a0ad65c6e8e0 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
More information about the libc-commits
mailing list