From 70293f5faabe08fc9bdef26ad0b1d6afe19e8f79 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 11 May 2013 17:56:13 -0700 Subject: Open source fixes: builds on OS X again. --- upb/table.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'upb/table.c') 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); } -- cgit v1.2.3