[libc-commits] [libc] [libc] implement stdc_leading_zeros_u* for	stdbit.h (PR #79669)
    Nick Desaulniers via libc-commits 
    libc-commits at lists.llvm.org
       
    Mon Jan 29 10:28:06 PST 2024
    
    
  
================
@@ -0,0 +1,22 @@
+//===-- Unittests for stdbit ----------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDSList-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "test/UnitTest/Test.h"
+
+#include "llvm-libc-macros/stdbit-macros.h"
+#include "src/__support/CPP/limits.h" // UINT_WIDTH
+#include "src/stdbit/stdc_leading_zeros_uc.h"
+#include "src/stdbit/stdc_leading_zeros_ui.h"
+#include "src/stdbit/stdc_leading_zeros_ul.h"
+#include "src/stdbit/stdc_leading_zeros_ull.h"
+#include "src/stdbit/stdc_leading_zeros_us.h"
+
+TEST(LlvmLibcStdbitTest, TypeGenericMacro) {
+  using namespace LIBC_NAMESPACE;
----------------
nickdesaulniers wrote:
I've changed this test significantly in 338637753432, PTAL
https://github.com/llvm/llvm-project/pull/79669
    
    
More information about the libc-commits
mailing list