[libcxx-commits] [PATCH] D97211: [NFC][libc++] Fix _LIBCPP_HAS_BITSCAN64 usage.

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 22 11:35:09 PST 2021

Mordante created this revision.
Mordante requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Seems line was accidentally left in
llvm-svn: 290924 86eebc5b658b5c2ccf2f4fbc16e8aee9880919a5

Just make sure it has no unintended build failures on our CI.

  rG LLVM Github Monorepo



Index: libcxx/include/__bits
--- libcxx/include/__bits
+++ libcxx/include/__bits
@@ -76,7 +76,6 @@
 int __libcpp_ctz(unsigned long long __x) {
     unsigned long __where;
 #if defined(_LIBCPP_HAS_BITSCAN64)
-    (defined(_M_AMD64) || defined(__x86_64__))
   if (_BitScanForward64(&__where, __x))
     return static_cast<int>(__where);

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97211.325511.patch
Type: text/x-patch
Size: 410 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210222/88b45f3f/attachment.bin>

More information about the libcxx-commits mailing list