int8_t global_sum_step = counter->global_sum_step.s8;
res = *int_p;
- switch (sync) {
- case COUNTER_SYNC_PER_CPU:
+ switch (alloc) {
+ case COUNTER_ALLOC_PER_CPU:
{
do {
move_sum = 0;
} while (old != res);
break;
}
- case COUNTER_SYNC_GLOBAL:
+ case COUNTER_ALLOC_GLOBAL:
{
do {
old = res;
int16_t global_sum_step = counter->global_sum_step.s16;
res = *int_p;
- switch (sync) {
- case COUNTER_SYNC_PER_CPU:
+ switch (alloc) {
+ case COUNTER_ALLOC_PER_CPU:
{
do {
move_sum = 0;
} while (old != res);
break;
}
- case COUNTER_SYNC_GLOBAL:
+ case COUNTER_ALLOC_GLOBAL:
{
do {
old = res;
int32_t global_sum_step = counter->global_sum_step.s32;
res = *int_p;
- switch (sync) {
- case COUNTER_SYNC_PER_CPU:
+ switch (alloc) {
+ case COUNTER_ALLOC_PER_CPU:
{
do {
move_sum = 0;
} while (old != res);
break;
}
- case COUNTER_SYNC_GLOBAL:
+ case COUNTER_ALLOC_GLOBAL:
{
do {
old = res;
int64_t global_sum_step = counter->global_sum_step.s64;
res = *int_p;
- switch (sync) {
- case COUNTER_SYNC_PER_CPU:
+ switch (alloc) {
+ case COUNTER_ALLOC_PER_CPU:
{
do {
move_sum = 0;
} while (old != res);
break;
}
- case COUNTER_SYNC_GLOBAL:
+ case COUNTER_ALLOC_GLOBAL:
{
do {
old = res;