From 8bc5421ba052f963cc8578295c80324ef0586d9c Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Wed, 21 Nov 2012 13:31:07 +0000 Subject: [PATCH] [asan] get rid of kPageSizeBits llvm-svn: 168426 --- compiler-rt/lib/sanitizer_common/sanitizer_common.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common.h b/compiler-rt/lib/sanitizer_common/sanitizer_common.h index 6db4c17..d6af5f8 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common.h @@ -29,18 +29,15 @@ const uptr kWordSizeInBits = 8 * kWordSize; // We may want to use getpagesize() or sysconf(_SC_PAGESIZE) here rather than // hardcoding the values, but today these values need to be compile-time // constants. -const uptr kPageSizeBits = 16; -const uptr kPageSize = 1UL << kPageSizeBits; +const uptr kPageSize = 1UL << 16; const uptr kCacheLineSize = 128; const uptr kMmapGranularity = kPageSize; #elif !defined(_WIN32) -const uptr kPageSizeBits = 12; -const uptr kPageSize = 1UL << kPageSizeBits; +const uptr kPageSize = 1UL << 12; const uptr kCacheLineSize = 64; const uptr kMmapGranularity = kPageSize; #else -const uptr kPageSizeBits = 12; -const uptr kPageSize = 1UL << kPageSizeBits; +const uptr kPageSize = 1UL << 12; const uptr kCacheLineSize = 64; const uptr kMmapGranularity = 1UL << 16; #endif -- 2.7.4