diff options
Diffstat (limited to 'upb/table.c')
-rw-r--r-- | upb/table.c | 4 |
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); } |