Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: src/arm64/utils-arm64.cc

Issue 341123003: ARM64: Faster immediate check and fix corner cases (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/arm64/utils-arm64.cc
diff --git a/src/arm64/utils-arm64.cc b/src/arm64/utils-arm64.cc
index 0cb4ea5e74fa6fa15d2c4c3b16484f9f191ac392..dbad4520379bd18444c73635b1b0f8d414a359bd 100644
--- a/src/arm64/utils-arm64.cc
+++ b/src/arm64/utils-arm64.cc
@@ -78,6 +78,11 @@ int CountSetBits(uint64_t value, int width) {
}
+uint64_t LowestSetBit(uint64_t value) {
+ return value & -value;
+}
+
+
int MaskToBit(uint64_t mask) {
ASSERT(CountSetBits(mask, 64) == 1);
return CountTrailingZeros(mask, 64);

Powered by Google App Engine
This is Rietveld 408576698