[libc-commits] [PATCH] D104897: [libc] Use __builtin_ctzll instead of __builtin_ctzl in elements_x86.h.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Jun 25 15:58:36 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG2e9c75daffdd: [libc] Use __builtin_ctzll instead of __builtin_ctzl in elements_x86.h. (authored by sivachandra).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104897/new/

https://reviews.llvm.org/D104897

Files:
  libc/src/string/memory_utils/elements_x86.h


Index: libc/src/string/memory_utils/elements_x86.h
===================================================================
--- libc/src/string/memory_utils/elements_x86.h
+++ libc/src/string/memory_utils/elements_x86.h
@@ -46,7 +46,7 @@
   }
 
   static int CharDiff(const char *a, const char *b, uint64_t mask) {
-    const size_t diff_index = __builtin_ctzl(mask);
+    const size_t diff_index = __builtin_ctzll(mask);
     const int ca = (unsigned char)a[diff_index];
     const int cb = (unsigned char)b[diff_index];
     return ca - cb;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104897.354620.patch
Type: text/x-patch
Size: 538 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20210625/b4ccf45e/attachment.bin>


More information about the libc-commits mailing list