Changeset c4c8571 for libcfa/src/concurrency/kernel/cluster.hfa
- Timestamp:
- Jul 28, 2022, 12:04:25 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- 32d1383, d0fcc82
- Parents:
- 3f95dab (diff), 2af1943 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/cluster.hfa
r3f95dab rc4c8571 39 39 if (ts_next == ULLONG_MAX) return; 40 40 unsigned long long now = rdtscl(); 41 unsigned long long pma = __atomic_load_n(&tscs[ idx ]. ma, __ATOMIC_RELAXED);42 __atomic_store_n(&tscs[ idx ].t v, ts_next, __ATOMIC_RELAXED);43 __atomic_store_n(&tscs[ idx ]. ma, moving_average(now, ts_prev, pma), __ATOMIC_RELAXED);41 unsigned long long pma = __atomic_load_n(&tscs[ idx ].t.ma, __ATOMIC_RELAXED); 42 __atomic_store_n(&tscs[ idx ].t.tv, ts_next, __ATOMIC_RELAXED); 43 __atomic_store_n(&tscs[ idx ].t.ma, moving_average(now, ts_prev, pma), __ATOMIC_RELAXED); 44 44 } 45 45 … … 61 61 if(ptsc != ULLONG_MAX) { 62 62 /* paranoid */ verify( start + i < count ); 63 unsigned long long tsc = moving_average(ctsc, ptsc, tscs[start + i]. ma);63 unsigned long long tsc = moving_average(ctsc, ptsc, tscs[start + i].t.ma); 64 64 if(tsc > max) max = tsc; 65 65 }
Note: See TracChangeset
for help on using the changeset viewer.