From: Jan Kotas Date: Sun, 26 Feb 2017 20:55:49 +0000 (-0800) Subject: Delete a bit of dead code (dotnet/coreclr#9801) X-Git-Tag: submit/tizen/20210909.063632~11030^2~7945 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b3d952801902d03d71e6a9de9135b589a81a81f;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Delete a bit of dead code (dotnet/coreclr#9801) Commit migrated from https://github.com/dotnet/coreclr/commit/9a8106a6fc79649bd8296e84f457d10211eed9db --- diff --git a/src/coreclr/src/gc/gc.cpp b/src/coreclr/src/gc/gc.cpp index 966c158..31a4a71 100644 --- a/src/coreclr/src/gc/gc.cpp +++ b/src/coreclr/src/gc/gc.cpp @@ -2161,18 +2161,6 @@ size_t logcount (size_t word) return count; } -//n!=0 -int log2(unsigned int n) -{ - int pos = 0; - if (n >= 1<<16) { n >>= 16; pos += 16; } - if (n >= 1<< 8) { n >>= 8; pos += 8; } - if (n >= 1<< 4) { n >>= 4; pos += 4; } - if (n >= 1<< 2) { n >>= 2; pos += 2; } - if (n >= 1<< 1) { pos += 1; } - return pos; -} - #ifndef DACCESS_COMPILE void stomp_write_barrier_resize(bool is_runtime_suspended, bool requires_upper_bounds_check)