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

Unified Diff: src/misc-intrinsics.h

Issue 20734002: Implement correct OS and CC detection. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Reverted changes to atomicops*.h Created 7 years, 5 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/lazy-instance.h ('k') | src/platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/misc-intrinsics.h
diff --git a/src/misc-intrinsics.h b/src/misc-intrinsics.h
index 5393de2c2175963a3f978eecbfd91189d869f975..35a243435c31f3f1d317a6859aded538e17274ec 100644
--- a/src/misc-intrinsics.h
+++ b/src/misc-intrinsics.h
@@ -39,13 +39,13 @@ namespace internal {
// Result is undefined if input is zero.
int IntegerLog2(uint32_t value);
-#if defined(__GNUC__)
+#if V8_CC_GNU
inline int IntegerLog2(uint32_t value) {
return 31 - __builtin_clz(value);
}
-#elif defined(_MSC_VER)
+#elif V8_CC_MSVC
#pragma intrinsic(_BitScanReverse)
« no previous file with comments | « src/lazy-instance.h ('k') | src/platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698