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

Unified Diff: src/utils.h

Issue 333053002: Untangle RNG from v8 core (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates 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
« no previous file with comments | « src/isolate-inl.h ('k') | src/utils/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils.h
diff --git a/src/utils.h b/src/utils.h
index a0553d266c5b2b045a6e25f9ed34ba388b16f2b3..7ab58ce3bc75160c677d934acfad7ffd96aa2a95 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -10,6 +10,7 @@
#include <string.h>
#include "src/allocation.h"
+#include "src/base/macros.h"
#include "src/checks.h"
#include "src/globals.h"
#include "src/list.h"
@@ -22,8 +23,6 @@ namespace internal {
// ----------------------------------------------------------------------------
// General helper functions
-#define IS_POWER_OF_TWO(x) ((x) != 0 && (((x) & ((x) - 1)) == 0))
-
// Returns true iff x is a power of 2. Cannot be used with the maximally
// negative value of the type T (the -1 overflows).
template <typename T>
« no previous file with comments | « src/isolate-inl.h ('k') | src/utils/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698