diff options
author | thegeorg <[email protected]> | 2022-10-20 12:16:22 +0300 |
---|---|---|
committer | thegeorg <[email protected]> | 2022-10-20 12:16:22 +0300 |
commit | da5ee816c1598acf602c1c42845b544878400d34 (patch) | |
tree | 47c0acdeae9bbd5ceb1019b6c8e94ada327d7776 /contrib/libs/cxxsupp/openmp/ompt-specific.h | |
parent | d37715ef865ba1c48ca505f8b96151ae6d417657 (diff) |
Update contrib/libs/cxxsupp/openmp to 15.0.2
Diffstat (limited to 'contrib/libs/cxxsupp/openmp/ompt-specific.h')
-rw-r--r-- | contrib/libs/cxxsupp/openmp/ompt-specific.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/libs/cxxsupp/openmp/ompt-specific.h b/contrib/libs/cxxsupp/openmp/ompt-specific.h index 2fc7ee1c35b..bd1e0d8991e 100644 --- a/contrib/libs/cxxsupp/openmp/ompt-specific.h +++ b/contrib/libs/cxxsupp/openmp/ompt-specific.h @@ -89,6 +89,17 @@ inline void *__ompt_load_return_address(int gtid) { ? __ompt_load_return_address(gtid) \ : __builtin_return_address(0)) +#define OMPT_GET_DISPATCH_CHUNK(chunk, lb, ub, incr) \ + do { \ + if (incr > 0) { \ + chunk.start = static_cast<uint64_t>(lb); \ + chunk.iterations = static_cast<uint64_t>(((ub) - (lb)) / (incr) + 1); \ + } else { \ + chunk.start = static_cast<uint64_t>(ub); \ + chunk.iterations = static_cast<uint64_t>(((lb) - (ub)) / -(incr) + 1); \ + } \ + } while (0) + //****************************************************************************** // inline functions //****************************************************************************** |