}
break;
case omp_atk_alignment:
+ if (traits[i].value == omp_atv_default)
+ {
+ data.alignment = 1;
+ break;
+ }
if ((traits[i].value & (traits[i].value - 1)) != 0
|| !traits[i].value)
return omp_null_allocator;
}
break;
case omp_atk_pool_size:
- data.pool_size = traits[i].value;
+ if (traits[i].value == omp_atv_default)
+ data.pool_size = ~(uintptr_t) 0;
+ else
+ data.pool_size = traits[i].value;
break;
case omp_atk_fallback:
switch (traits[i].value)
typedef enum omp_alloctrait_value_t
{
+ omp_atv_default = (__UINTPTR_TYPE__) -1,
omp_atv_false = 0,
omp_atv_true = 1,
- omp_atv_default = 2,
omp_atv_contended = 3,
omp_atv_uncontended = 4,
- omp_atv_sequential = 5,
+ omp_atv_serialized = 5,
+ omp_atv_sequential = omp_atv_serialized,
omp_atv_private = 6,
omp_atv_all = 7,
omp_atv_thread = 8,
omp_atv_environment = 15,
omp_atv_nearest = 16,
omp_atv_blocked = 17,
- omp_atv_interleaved = 18,
- __omp_alloctrait_value_max__ = __UINTPTR_MAX__
+ omp_atv_interleaved = 18
} omp_alloctrait_value_t;
typedef struct omp_alloctrait_t