PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
arch-arm.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * arch-arm.h
4  * Atomic operations considerations specific to ARM
5  *
6  * Portions Copyright (c) 2013-2017, PostgreSQL Global Development Group
7  *
8  * NOTES:
9  *
10  * src/include/port/atomics/arch-arm.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 
15 /* intentionally no include guards, should only be included by atomics.h */
16 #ifndef INSIDE_ATOMICS_H
17 #error "should be included via atomics.h"
18 #endif
19 
20 /*
21  * 64 bit atomics on ARM32 are implemented using kernel fallbacks and thus
22  * might be slow, so disable entirely. On ARM64 that problem doesn't exist.
23  */
24 #if !defined(__aarch64__) && !defined(__aarch64)
25 #define PG_DISABLE_64_BIT_ATOMICS
26 #endif /* __aarch64__ || __aarch64 */