diff options
| author | Kostya Serebryany <kcc@google.com> | 2012-06-06 16:33:46 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2012-06-06 16:33:46 +0000 |
| commit | c0bbfbfba2073ea3771ca8ff26ef6fd62f0ef82b (patch) | |
| tree | b10b4dbbaf5e50377d0b79e78c8940e12ab83bde /compiler-rt/lib/sanitizer_common/sanitizer_common.h | |
| parent | 3cc99748b6a0d27b3f8491bb4c40eb0c8ed91696 (diff) | |
| download | bcm5719-llvm-c0bbfbfba2073ea3771ca8ff26ef6fd62f0ef82b.tar.gz bcm5719-llvm-c0bbfbfba2073ea3771ca8ff26ef6fd62f0ef82b.zip | |
[asan] more allocator compaction
llvm-svn: 158082
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_common.h')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common.h b/compiler-rt/lib/sanitizer_common/sanitizer_common.h index f6025580494..566c3819653 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common.h @@ -47,6 +47,12 @@ inline uptr RoundUpTo(uptr size, uptr boundary) { return (size + boundary - 1) & ~(boundary - 1); } +#if __WORDSIZE == 64 +# define FIRST_32_SECOND_64(a, b) (b) +#else +# define FIRST_32_SECOND_64(a, b) (a) +#endif + } // namespace __sanitizer #endif // SANITIZER_COMMON_H |

