[Openmp-commits] [openmp] fix endianness dependent definitions in kmp.h for MSVC (PR #84530)
via Openmp-commits
openmp-commits at lists.llvm.org
Fri Mar 8 10:37:38 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 60a20bd6973c8fc7aa9a19465ed042604e07fb17 570edd0dcb4d76e1714612328fdf14ca5c57d52f -- openmp/runtime/src/kmp.h openmp/runtime/src/kmp_lock.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/openmp/runtime/src/kmp_lock.h b/openmp/runtime/src/kmp_lock.h
index 16eef38ac4..6202f3d617 100644
--- a/openmp/runtime/src/kmp_lock.h
+++ b/openmp/runtime/src/kmp_lock.h
@@ -120,7 +120,7 @@ extern void __kmp_validate_locks(void);
struct kmp_base_tas_lock {
// KMP_LOCK_FREE(tas) => unlocked; locked: (gtid+1) of owning thread
-#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) && \
+#if defined(__BYTE_ORDER__) && (__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.
``````````
</details>
https://github.com/llvm/llvm-project/pull/84530
More information about the Openmp-commits
mailing list