[clang] [clang]Implement the c23 stdc bit builtins (PR #185978)
NagaChaitanya Vellanki via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 10 10:18:32 PDT 2026
================
@@ -0,0 +1,19 @@
+#ifndef LLVM_CLANG_TEST_STDBIT_H
+#define LLVM_CLANG_TEST_STDBIT_H
+
+#define stdc_leading_zeros(x) (__builtin_stdc_leading_zeros((x)))
----------------
chaitanyav wrote:
@efriedma-quic @AaronBallman i can implement those variants, since the most of the codegen and constant evaluation is already there
https://github.com/llvm/llvm-project/pull/185978
More information about the cfe-commits
mailing list