about summary refs log tree commit diff homepage
path: root/runtime/Sanitizer/sanitizer_common/sanitizer_platform.h
blob: d912a0f051ecbc7f6db7b5310e68ae1c8d2214a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//===-- sanitizer_platform.h ------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// Common platform macros.
//===----------------------------------------------------------------------===//

// NOTE: Needs to be kept in sync with
// compiler-rt/lib/sanitizer_common/sanitizer_platform.h from LLVM project.
// But in fact, only SANITIZER_WORDSIZE macro was used, so how it is.

#ifndef SANITIZER_PLATFORM_H
#define SANITIZER_PLATFORM_H

#if __LP64__ || defined(_WIN64)
#define SANITIZER_WORDSIZE 64
#else
#define SANITIZER_WORDSIZE 32
#endif

#endif // SANITIZER_PLATFORM_H