about summary refs log tree commit diff homepage
path: root/runtime/Sanitizer/sanitizer_common/sanitizer_platform.h
blob: 074d2b74679d80824a1f673f320e083583267851 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//===-- 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.
//===----------------------------------------------------------------------===//

#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