projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acbef03
)
Delete a bit of dead code (dotnet/coreclr#9801)
author
Jan Kotas
<jkotas@microsoft.com>
Sun, 26 Feb 2017 20:55:49 +0000
(12:55 -0800)
committer
GitHub
<noreply@github.com>
Sun, 26 Feb 2017 20:55:49 +0000
(12:55 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/
9a8106a6fc79649bd8296e84f457d10211eed9db
src/coreclr/src/gc/gc.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/src/gc/gc.cpp
b/src/coreclr/src/gc/gc.cpp
index
966c158
..
31a4a71
100644
(file)
--- 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)