summaryrefslogtreecommitdiffstats
path: root/vm/Common.h
diff options
context:
space:
mode:
authorCarl Shapiro <cshapiro@google.com>2011-02-08 19:54:55 -0800
committerCarl Shapiro <cshapiro@google.com>2011-02-09 13:57:46 -0800
commit67f9be7f5d77cc0ab2237ce4281eede9e496bb89 (patch)
tree3bf15c8216e2b26d1266a4023a8186632c8e8fd8 /vm/Common.h
parent478954a643669168c5dfa8f63c76f5b8a17a8a76 (diff)
downloadandroid_dalvik-67f9be7f5d77cc0ab2237ce4281eede9e496bb89.tar.gz
android_dalvik-67f9be7f5d77cc0ab2237ce4281eede9e496bb89.tar.bz2
android_dalvik-67f9be7f5d77cc0ab2237ce4281eede9e496bb89.zip
Remove the private CLZ implementation in the GC.
This was a hold over from a time when the compiler did not properly support the CLZ intrinsic. Change-Id: I224481868c8d6fd3e0382d9cde3a2ffd02cfd39c
Diffstat (limited to 'vm/Common.h')
-rw-r--r--vm/Common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm/Common.h b/vm/Common.h
index 19de943d4..7d8424ed9 100644
--- a/vm/Common.h
+++ b/vm/Common.h
@@ -45,6 +45,8 @@
#define ALIGN_UP_TO_PAGE_SIZE(p) ALIGN_UP(p, SYSTEM_PAGE_SIZE)
#define ALIGN_DOWN_TO_PAGE_SIZE(p) ALIGN_DOWN(p, SYSTEM_PAGE_SIZE)
+#define CLZ(x) __builtin_clz(x)
+
/*
* If "very verbose" logging is enabled, make it equivalent to LOGV.
* Otherwise, make it disappear.