aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-09-13 02:42:00 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-09-13 02:42:00 -0400
commit5931a6b1a5b8f4941fc9b78f8960745f81594f17 (patch)
tree0a9897aab096767288688216aa68d3809e2d77fe /src/analyze.cpp
parent373785ae8d49d0ae3785020f05573763268ee9e1 (diff)
parent57ea6e8c9f204be6d38177024d3b8f1aba4e05b2 (diff)
downloadzig-5931a6b1a5b8f4941fc9b78f8960745f81594f17.tar.gz
zig-5931a6b1a5b8f4941fc9b78f8960745f81594f17.zip
Merge branch 'msvc'
Now the supported compilers of Zig are: * GCC * Clang * MSVC * MinGW
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index bfc3bbfa71..5606e25bbf 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -163,7 +163,7 @@ static TypeTableEntry *new_container_type_entry(TypeTableEntryId id, AstNode *so
}
static uint8_t log2_u64(uint64_t x) {
- return (63 - __builtin_clzll(x));
+ return (63 - clzll(x));
}
static uint8_t bits_needed_for_unsigned(uint64_t x) {