summaryrefslogtreecommitdiff
path: root/upb
diff options
context:
space:
mode:
Diffstat (limited to 'upb')
-rw-r--r--upb/table.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/upb/table.c b/upb/table.c
index a54e715..40f841d 100644
--- a/upb/table.c
+++ b/upb/table.c
@@ -22,12 +22,8 @@ static const double MAX_LOAD = 0.85;
static const double MIN_DENSITY = 0.1;
int upb_log2(uint64_t v) {
-#ifdef __GNUC__
- int ret = 31 - __builtin_clz(v);
-#else
int ret = 0;
while (v >>= 1) ret++;
-#endif
return UPB_MIN(UPB_MAXARRSIZE, ret);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback