[libc] Use __builtin_ctzll instead of __builtin_ctzl in elements_x86.h. · llvm/llvm-project@2e9c75d (original) (raw)

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@ template struct Vector : public Base {
46 46 }
47 47
48 48 static int CharDiff(const char *a, const char *b, uint64_t mask) {
49 -const size_t diff_index = __builtin_ctzl(mask);
49 +const size_t diff_index = __builtin_ctzll(mask);
50 50 const int ca = (unsigned char)a[diff_index];
51 51 const int cb = (unsigned char)b[diff_index];
52 52 return ca - cb;