summaryrefslogtreecommitdiff
path: root/openmp/runtime/src/kmp_alloc.cpp
diff options
context:
space:
mode:
authorShilei Tian <tianshilei1992@gmail.com>2021-02-20 12:46:04 -0500
committerShilei Tian <tianshilei1992@gmail.com>2021-02-20 12:46:32 -0500
commit309b00a42e902e816dad03c2c2f1a9e41ba130bc (patch)
tree4977b1b8e7709e8d850175eac6baa041856f4a34 /openmp/runtime/src/kmp_alloc.cpp
parent6984e0d4398592a20055cb12842fc72462ce01a5 (diff)
[OpenMP][NFC] clang-format the whole openmp project
Same script as D95318. Test files are excluded. Reviewed By: AndreyChurbanov Differential Revision: https://reviews.llvm.org/D97088
Diffstat (limited to 'openmp/runtime/src/kmp_alloc.cpp')
-rw-r--r--openmp/runtime/src/kmp_alloc.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/openmp/runtime/src/kmp_alloc.cpp b/openmp/runtime/src/kmp_alloc.cpp
index 31981d5c1d55..4bb3d2030e6c 100644
--- a/openmp/runtime/src/kmp_alloc.cpp
+++ b/openmp/runtime/src/kmp_alloc.cpp
@@ -315,7 +315,7 @@ static void __kmp_bget_enqueue(kmp_info_t *th, void *buf
,
kmp_int32 rel_gtid
#endif
- ) {
+) {
bfhead_t *b = BFH(((char *)buf) - sizeof(bhead_t));
KMP_DEBUG_ASSERT(b->bh.bb.bsize != 0);
@@ -738,7 +738,7 @@ static void brel(kmp_info_t *th, void *buf) {
,
__kmp_gtid_from_thread(th)
#endif
- );
+ );
return;
}
@@ -1945,10 +1945,9 @@ void *___kmp_fast_allocate(kmp_info_t *this_thr, size_t size KMP_SRC_LOC_DECL) {
if (ptr != NULL) {
// pop the head of no-sync free list
this_thr->th.th_free_lists[index].th_free_list_self = *((void **)ptr);
- KMP_DEBUG_ASSERT(
- this_thr ==
- ((kmp_mem_descr_t *)((kmp_uintptr_t)ptr - sizeof(kmp_mem_descr_t)))
- ->ptr_aligned);
+ KMP_DEBUG_ASSERT(this_thr == ((kmp_mem_descr_t *)((kmp_uintptr_t)ptr -
+ sizeof(kmp_mem_descr_t)))
+ ->ptr_aligned);
goto end;
}
ptr = TCR_SYNC_PTR(this_thr->th.th_free_lists[index].th_free_list_sync);
@@ -1964,10 +1963,9 @@ void *___kmp_fast_allocate(kmp_info_t *this_thr, size_t size KMP_SRC_LOC_DECL) {
// push the rest of chain into no-sync free list (can be NULL if there was
// the only block)
this_thr->th.th_free_lists[index].th_free_list_self = *((void **)ptr);
- KMP_DEBUG_ASSERT(
- this_thr ==
- ((kmp_mem_descr_t *)((kmp_uintptr_t)ptr - sizeof(kmp_mem_descr_t)))
- ->ptr_aligned);
+ KMP_DEBUG_ASSERT(this_thr == ((kmp_mem_descr_t *)((kmp_uintptr_t)ptr -
+ sizeof(kmp_mem_descr_t)))
+ ->ptr_aligned);
goto end;
}