[libc-commits] [libc] ad0c7da - [libc] Add missing stdc_first_trailing_zero_ to stdbit.yaml (#128101)
via libc-commits
libc-commits at lists.llvm.org
Fri Feb 21 08:25:04 PST 2025
Author: Alexey Samsonov
Date: 2025-02-21T08:24:59-08:00
New Revision: ad0c7da95373a052f282596f736e35417b2fa65b
URL: https://github.com/llvm/llvm-project/commit/ad0c7da95373a052f282596f736e35417b2fa65b
DIFF: https://github.com/llvm/llvm-project/commit/ad0c7da95373a052f282596f736e35417b2fa65b.diff
LOG: [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 <stdbit.h> inclusion fails, since the subsequently
included "stdbit-macros.h" expects these declarations to be present.
Co-authored-by: Alexey Samsonov <samsonov at google.com>
Added:
Modified:
libc/include/stdbit.yaml
Removed:
################################################################################
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