-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathTypeDefinitions.h
More file actions
58 lines (49 loc) · 1.83 KB
/
TypeDefinitions.h
File metadata and controls
58 lines (49 loc) · 1.83 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
Copyright (c) 2005-2023 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef _itt_shared_malloc_TypeDefinitions_H_
#define _itt_shared_malloc_TypeDefinitions_H_
// Define preprocessor symbols used to determine architecture
#if _WIN32||_WIN64
# if defined(_M_X64)||defined(__x86_64__) // the latter for MinGW support
# define __ARCH_x86_64 1
# elif defined(_M_IA64)
# define __ARCH_ipf 1
# elif defined(_M_IX86)||defined(__i386__) // the latter for MinGW support
# define __ARCH_x86_32 1
# elif defined(_M_ARM) || defined(_M_ARM64) || defined(__aarch64__) // the latter for MinGW support
# define __ARCH_other 1
# else
# error Unknown processor architecture for Windows
# endif
# define USE_WINTHREAD 1
#else /* Assume generic Unix */
# if __x86_64__
# define __ARCH_x86_64 1
# elif __ia64__
# define __ARCH_ipf 1
# elif __i386__ || __i386
# define __ARCH_x86_32 1
# else
# define __ARCH_other 1
# endif
# define USE_PTHREAD 1
#endif
// According to C99 standard INTPTR_MIN defined for C++
// iff __STDC_LIMIT_MACROS pre-defined
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1
#endif
//! PROVIDE YOUR OWN Customize.h IF YOU FEEL NECESSARY
#include "Customize.h"
#include "shared_utils.h"
#endif /* _itt_shared_malloc_TypeDefinitions_H_ */