File tree 3 files changed +7
-8
lines changed 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 63
63
* compiler barrier.
64
64
*
65
65
*/
66
- #if defined(__arm__ ) || defined(__arm ) || \
67
- defined(__aarch64__ ) || defined(__aarch64 )
66
+ #if defined(__arm__ ) || defined(__arm ) || defined(__aarch64__ )
68
67
#include "port/atomics/arch-arm.h"
69
68
#elif defined(__i386__ ) || defined(__i386 ) || defined(__x86_64__ )
70
69
#include "port/atomics/arch-x86.h"
Original file line number Diff line number Diff line change 21
21
* 64 bit atomics on ARM32 are implemented using kernel fallbacks and thus
22
22
* might be slow, so disable entirely. On ARM64 that problem doesn't exist.
23
23
*/
24
- #if !defined(__aarch64__ ) && !defined( __aarch64 )
24
+ #if !defined(__aarch64__ )
25
25
#define PG_DISABLE_64_BIT_ATOMICS
26
26
#else
27
27
/*
28
28
* Architecture Reference Manual for ARMv8 states aligned read/write to/from
29
29
* general purpose register is atomic.
30
30
*/
31
31
#define PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY
32
- #endif /* __aarch64__ || __aarch64 */
32
+ #endif /* __aarch64__ */
Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ spin_delay(void)
256
256
* We use the int-width variant of the builtin because it works on more chips
257
257
* than other widths.
258
258
*/
259
- #if defined(__arm__ ) || defined(__arm ) || defined(__aarch64__ ) || defined( __aarch64 )
259
+ #if defined(__arm__ ) || defined(__arm ) || defined(__aarch64__ )
260
260
#ifdef HAVE_GCC__SYNC_INT32_TAS
261
261
#define HAS_TEST_AND_SET
262
262
@@ -277,7 +277,7 @@ tas(volatile slock_t *lock)
277
277
* high-core-count ARM64 processors. It seems mostly a wash for smaller gear,
278
278
* and ISB doesn't exist at all on pre-v7 ARM chips.
279
279
*/
280
- #if defined(__aarch64__ ) || defined( __aarch64 )
280
+ #if defined(__aarch64__ )
281
281
282
282
#define SPIN_DELAY () spin_delay()
283
283
@@ -288,9 +288,9 @@ spin_delay(void)
288
288
" isb; \n" );
289
289
}
290
290
291
- #endif /* __aarch64__ || __aarch64 */
291
+ #endif /* __aarch64__ */
292
292
#endif /* HAVE_GCC__SYNC_INT32_TAS */
293
- #endif /* __arm__ || __arm || __aarch64__ || __aarch64 */
293
+ #endif /* __arm__ || __arm || __aarch64__ */
294
294
295
295
296
296
/*
You can’t perform that action at this time.
0 commit comments