[Openmp-commits] [openmp] fix endianness dependent definitions in OMP headers for MSVC (PR #84540)

via Openmp-commits openmp-commits at lists.llvm.org
Fri Mar 8 11:23:58 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 b7fc542864b61d6923903c354d3b303169685c6c -- 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 7be439a5cf..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/84540


More information about the Openmp-commits mailing list