We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b40be72 commit d47954aCopy full SHA for d47954a
openmp/runtime/src/kmp_lock.h
@@ -120,9 +120,9 @@ extern void __kmp_validate_locks(void);
120
121
struct kmp_base_tas_lock {
122
// KMP_LOCK_FREE(tas) => unlocked; locked: (gtid+1) of owning thread
123
-#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ && KMP_ARCH_PPC64
124
- // Swap the high and low 32-bit words to be consistent with the layout of
125
- // a 64-bit address in big-endian.
+#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ && __LP64__
+ // Flip the ordering of the high and low 32-bit member to be consistent
+ // with the memory layout of the address in 64-bit big-endian.
126
kmp_int32 depth_locked; // depth locked, for nested locks only
127
std::atomic<kmp_int32> poll;
128
#else
0 commit comments