[libc-commits] [libc] [libc] Add missing stdc_first_trailing_zero_ to stdbit.yaml (PR #128101)
via libc-commits
libc-commits at lists.llvm.org
Thu Feb 20 17:04:06 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Alexey Samsonov (vonosmas)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/128101.diff
1 Files Affected:
- (modified) libc/include/stdbit.yaml (+30)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/128101
More information about the libc-commits
mailing list