Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
arch-arm.h33 linesDownload Raw Back to atomics
1/*-------------------------------------------------------------------------2 *3 * arch-arm.h4 *	  Atomic operations considerations specific to ARM5 *6 * Portions Copyright (c) 2013-2023, PostgreSQL Global Development Group7 *8 * NOTES:9 *10 * src/include/port/atomics/arch-arm.h11 *12 *-------------------------------------------------------------------------13 */14 15/* intentionally no include guards, should only be included by atomics.h */16#ifndef INSIDE_ATOMICS_H17#error "should be included via atomics.h"18#endif19 20/*21 * 64 bit atomics on ARM32 are implemented using kernel fallbacks and thus22 * might be slow, so disable entirely. On ARM64 that problem doesn't exist.23 */24#if !defined(__aarch64__)25#define PG_DISABLE_64_BIT_ATOMICS26#else27/*28 * Architecture Reference Manual for ARMv8 states aligned read/write to/from29 * general purpose register is atomic.30 */31#define PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY32#endif  /* __aarch64__ */33 
codekingpro/portable-devtools · Team Ai