Merge branch 'master' into blender2.8
This commit is contained in:
@@ -798,7 +798,10 @@ typedef struct BVHDivNodesData {
|
||||
int first_of_next_level;
|
||||
} BVHDivNodesData;
|
||||
|
||||
static void non_recursive_bvh_div_nodes_task_cb(void *userdata, const int j, const ParallelRangeTLS *UNUSED(tls))
|
||||
static void non_recursive_bvh_div_nodes_task_cb(
|
||||
void *__restrict userdata,
|
||||
const int j,
|
||||
const ParallelRangeTLS *__restrict UNUSED(tls))
|
||||
{
|
||||
BVHDivNodesData *data = userdata;
|
||||
|
||||
@@ -1282,7 +1285,10 @@ int BLI_bvhtree_overlap_thread_num(const BVHTree *tree)
|
||||
return (int)MIN2(tree->tree_type, tree->nodes[tree->totleaf]->totnode);
|
||||
}
|
||||
|
||||
static void bvhtree_overlap_task_cb(void *userdata, const int j, const ParallelRangeTLS *UNUSED(tls))
|
||||
static void bvhtree_overlap_task_cb(
|
||||
void *__restrict userdata,
|
||||
const int j,
|
||||
const ParallelRangeTLS *__restrict UNUSED(tls))
|
||||
{
|
||||
BVHOverlapData_Thread *data = &((BVHOverlapData_Thread *)userdata)[j];
|
||||
BVHOverlapData_Shared *data_shared = data->shared;
|
||||
|
||||
@@ -315,6 +315,15 @@ MINLINE int max_iiii(int a, int b, int c, int d)
|
||||
return max_ii(max_iii(a, b, c), d);
|
||||
}
|
||||
|
||||
MINLINE size_t min_zz(size_t a, size_t b)
|
||||
{
|
||||
return (a < b) ? a : b;
|
||||
}
|
||||
MINLINE size_t max_zz(size_t a, size_t b)
|
||||
{
|
||||
return (b < a) ? a : b;
|
||||
}
|
||||
|
||||
/**
|
||||
* Almost-equal for IEEE floats, using absolute difference method.
|
||||
*
|
||||
|
||||
@@ -46,8 +46,10 @@ typedef struct CovarianceData {
|
||||
int nbr_cos_vn;
|
||||
} CovarianceData;
|
||||
|
||||
static void covariance_m_vn_ex_task_cb(void *userdata, const int a,
|
||||
const ParallelRangeTLS *UNUSED(tls))
|
||||
static void covariance_m_vn_ex_task_cb(
|
||||
void *__restrict userdata,
|
||||
const int a,
|
||||
const ParallelRangeTLS *__restrict UNUSED(tls))
|
||||
{
|
||||
CovarianceData *data = userdata;
|
||||
const float *cos_vn = data->cos_vn;
|
||||
|
||||
@@ -1029,7 +1029,7 @@ static void parallel_range_func(
|
||||
}
|
||||
}
|
||||
|
||||
static void palallel_range_single_thread(int start, int stop,
|
||||
static void palallel_range_single_thread(const int start, int const stop,
|
||||
void *userdata,
|
||||
TaskParallelRangeFunc func,
|
||||
const ParallelRangeSettings *settings)
|
||||
|
||||
Reference in New Issue
Block a user