aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/openmp/kmp_dispatch.cpp
diff options
context:
space:
mode:
authordanlark <danlark@yandex-team.ru>2022-02-10 16:46:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:10 +0300
commitbaa58daefa91fde4b4769facdbd2903763b9c6a8 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /contrib/libs/cxxsupp/openmp/kmp_dispatch.cpp
parent3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff)
downloadydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/cxxsupp/openmp/kmp_dispatch.cpp')
-rw-r--r--contrib/libs/cxxsupp/openmp/kmp_dispatch.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/contrib/libs/cxxsupp/openmp/kmp_dispatch.cpp b/contrib/libs/cxxsupp/openmp/kmp_dispatch.cpp
index 8dccef616a..c91bb8da3c 100644
--- a/contrib/libs/cxxsupp/openmp/kmp_dispatch.cpp
+++ b/contrib/libs/cxxsupp/openmp/kmp_dispatch.cpp
@@ -293,11 +293,11 @@ __kmp_wait_yield( volatile UT * spinner,
)
{
// note: we may not belong to a team at this point
- volatile UT * spin = spinner;
- UT check = checker;
- kmp_uint32 spins;
- kmp_uint32 (*f) ( UT, UT ) = pred;
- UT r;
+ volatile UT * spin = spinner;
+ UT check = checker;
+ kmp_uint32 spins;
+ kmp_uint32 (*f) ( UT, UT ) = pred;
+ UT r;
KMP_FSYNC_SPIN_INIT( obj, (void*) spin );
KMP_INIT_YIELD( spins );
@@ -2190,10 +2190,10 @@ __kmp_dist_get_bounds(
) {
typedef typename traits_t< T >::unsigned_t UT;
typedef typename traits_t< T >::signed_t ST;
- kmp_uint32 team_id;
- kmp_uint32 nteams;
- UT trip_count;
- kmp_team_t *team;
+ kmp_uint32 team_id;
+ kmp_uint32 nteams;
+ UT trip_count;
+ kmp_team_t *team;
kmp_info_t * th;
KMP_DEBUG_ASSERT( plastiter && plower && pupper );
@@ -2261,16 +2261,16 @@ __kmp_dist_get_bounds(
*plastiter = ( team_id == trip_count - 1 );
} else {
if( __kmp_static == kmp_sch_static_balanced ) {
- UT chunk = trip_count / nteams;
- UT extras = trip_count % nteams;
+ UT chunk = trip_count / nteams;
+ UT extras = trip_count % nteams;
*plower += incr * ( team_id * chunk + ( team_id < extras ? team_id : extras ) );
*pupper = *plower + chunk * incr - ( team_id < extras ? 0 : incr );
if( plastiter != NULL )
*plastiter = ( team_id == nteams - 1 );
} else {
- T chunk_inc_count =
+ T chunk_inc_count =
( trip_count / nteams + ( ( trip_count % nteams ) ? 1 : 0) ) * incr;
- T upper = *pupper;
+ T upper = *pupper;
KMP_DEBUG_ASSERT( __kmp_static == kmp_sch_static_greedy );
// Unknown static scheduling type.
*plower += team_id * chunk_inc_count;
@@ -2543,11 +2543,11 @@ __kmp_wait_yield_4(volatile kmp_uint32 * spinner,
)
{
// note: we may not belong to a team at this point
- volatile kmp_uint32 * spin = spinner;
- kmp_uint32 check = checker;
- kmp_uint32 spins;
- kmp_uint32 (*f) ( kmp_uint32, kmp_uint32 ) = pred;
- kmp_uint32 r;
+ volatile kmp_uint32 * spin = spinner;
+ kmp_uint32 check = checker;
+ kmp_uint32 spins;
+ kmp_uint32 (*f) ( kmp_uint32, kmp_uint32 ) = pred;
+ kmp_uint32 r;
KMP_FSYNC_SPIN_INIT( obj, (void*) spin );
KMP_INIT_YIELD( spins );
@@ -2576,11 +2576,11 @@ __kmp_wait_yield_8( volatile kmp_uint64 * spinner,
)
{
// note: we may not belong to a team at this point
- volatile kmp_uint64 * spin = spinner;
- kmp_uint64 check = checker;
- kmp_uint32 spins;
- kmp_uint32 (*f) ( kmp_uint64, kmp_uint64 ) = pred;
- kmp_uint64 r;
+ volatile kmp_uint64 * spin = spinner;
+ kmp_uint64 check = checker;
+ kmp_uint32 spins;
+ kmp_uint32 (*f) ( kmp_uint64, kmp_uint64 ) = pred;
+ kmp_uint64 r;
KMP_FSYNC_SPIN_INIT( obj, (void*) spin );
KMP_INIT_YIELD( spins );