diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2023-01-01 13:28:36 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-01 13:28:36 +0000 |
| commit | 168cec1e9d56563719039d766fc6bf776f3cf5ee (patch) | |
| tree | 27edc49833bfac6d1054bc8e3ea07d2191648f19 /src/common.cpp | |
| parent | c1384afe2fd705ce075277aa8dc6bc259dc94cdc (diff) | |
| parent | 27ba1d596c5b68f856b4e74c72bf28439daf4807 (diff) | |
Merge pull request #2283 from colrdavidson/threadpool-swap
move to work-stealing threadpool
Diffstat (limited to 'src/common.cpp')
| -rw-r--r-- | src/common.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common.cpp b/src/common.cpp index 3624446f1..3b6ea59e8 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -31,7 +31,8 @@ gb_internal gbAllocator heap_allocator(void); -#define for_array(index_, array_) for (isize index_ = 0; index_ < (array_).count; index_++) +#define for_array_off(index_, off_, array_) for (isize index_ = off_; index_ < (array_).count; index_++) +#define for_array(index_, array_) for_array_off(index_, 0, array_) gb_internal i32 next_pow2(i32 n); gb_internal i64 next_pow2(i64 n); @@ -908,4 +909,4 @@ gb_internal Slice<DistanceAndTarget> did_you_mean_results(DidYouMeanAnswers *d) #if defined(GB_SYSTEM_WINDOWS) #pragma warning(pop) -#endif
\ No newline at end of file +#endif |