Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 57) sorted by relevance

123

/oneTBB/examples/parallel_for/tachyon/src/
H A Dapitrigeom.cpp167 rt_vector(min.x, min.y, min.z), in rt_tri_box()
168 rt_vector(min.x, max.y, min.z), in rt_tri_box()
171 rt_vector(min.x, min.y, min.z), in rt_tri_box()
177 rt_vector(min.x, min.y, max.z), in rt_tri_box()
181 rt_vector(min.x, min.y, max.z), in rt_tri_box()
187 rt_vector(min.x, min.y, min.z), in rt_tri_box()
191 rt_vector(min.x, min.y, min.z), in rt_tri_box()
192 rt_vector(min.x, max.y, min.z), in rt_tri_box()
197 rt_vector(max.x, min.y, min.z), in rt_tri_box()
207 rt_vector(min.x, min.y, min.z), in rt_tri_box()
[all …]
H A Dbndbox.cpp65 bndbox *newbndbox(vector min, vector max) { in newbndbox() argument
70 b->min = min; in newbndbox()
83 *min = b->min; in bndbox_bbox()
108 if ((ry->s.x < bx->min.x) && (ry->e.x < bx->min.x)) in bndbox_intersect()
113 if ((ry->s.y < bx->min.y) && (ry->e.y < bx->min.y)) in bndbox_intersect()
118 if ((ry->s.z < bx->min.z) && (ry->e.z < bx->min.z)) in bndbox_intersect()
126 if ((ry->o.x < bx->min.x) || (ry->o.x > bx->max.x)) in bndbox_intersect()
130 tx1 = (bx->min.x - ry->o.x) / ry->d.x; in bndbox_intersect()
148 if ((ry->o.y < bx->min.y) || (ry->o.y > bx->max.y)) in bndbox_intersect()
152 ty1 = (bx->min.y - ry->o.y) / ry->d.y; in bndbox_intersect()
[all …]
H A Dbox.cpp58 int box_bbox(void *obj, vector *min, vector *max) { in box_bbox() argument
61 *min = b->min; in box_bbox()
72 box *newbox(void *tex, vector min, vector max) { in newbox() argument
79 b->min = min; in newbox()
93 if ((ry->o.x < bx->min.x) || (ry->o.x > bx->max.x)) in box_intersect()
97 tx1 = (bx->min.x - ry->o.x) / ry->d.x; in box_intersect()
119 ty1 = (bx->min.y - ry->o.y) / ry->d.y; in box_intersect()
141 tz1 = (bx->min.z - ry->o.z) / ry->d.z; in box_intersect()
166 c.x = (bx->max.x + bx->min.x) / 2.0; in box_normal()
167 c.y = (bx->max.y + bx->min.y) / 2.0; in box_normal()
[all …]
H A Dgrid.hpp54 object *newgrid(int xsize, int ysize, int zsize, vector min, vector max);
71 vector min; /* the minimum coords for the box containing the grid */ member
87 #define voxel2x(g, X) ((X) * (g->voxsize.x) + (g->min.x))
88 #define voxel2y(g, Y) ((Y) * (g->voxsize.y) + (g->min.y))
89 #define voxel2z(g, Z) ((Z) * (g->voxsize.z) + (g->min.z))
94 #define x2voxel(g, x) (((x)-g->min.x) / g->voxsize.x)
95 #define y2voxel(g, y) (((y)-g->min.y) / g->voxsize.y)
96 #define z2voxel(g, z) (((z)-g->min.z) / g->voxsize.z)
98 static int grid_bbox(void *obj, vector *min, vector *max);
H A Dobjbound.cpp60 vector min, max; in globalbound() local
75 min.x = -FHUGE; in globalbound()
76 min.y = -FHUGE; in globalbound()
77 min.z = -FHUGE; in globalbound()
82 cur->methods->bbox((void *)cur, &min, &max); in globalbound()
84 gmin->x = MYMIN(gmin->x, min.x); in globalbound()
85 gmin->y = MYMIN(gmin->y, min.y); in globalbound()
86 gmin->z = MYMIN(gmin->z, min.z); in globalbound()
96 static int objinside(object *obj, vector *min, vector *max) { in objinside() argument
103 if ((min->x <= omin.x) && (min->y <= omin.y) && (min->z <= omin.z) && (max->x >= omax.x) && in objinside()
[all …]
H A Dvol.cpp64 int scalarvol_bbox(void *obj, vector *min, vector *max) { in scalarvol_bbox() argument
67 *min = b->min; in scalarvol_bbox()
74 vector min, in newscalarvol() argument
124 bx = newbox(tx, min, max); in newscalarvol()
183 if ((ry->o.x < bx->min.x) || (ry->o.x > bx->max.x)) in scalar_volume_texture()
187 tx1 = (bx->min.x - ry->o.x) / ry->d.x; in scalar_volume_texture()
209 ty1 = (bx->min.y - ry->o.y) / ry->d.y; in scalar_volume_texture()
231 tz1 = (bx->min.z - ry->o.z) / ry->d.z; in scalar_volume_texture()
254 bln.x = fabs(bx->min.x - bx->max.x); in scalar_volume_texture()
255 bln.y = fabs(bx->min.y - bx->max.y); in scalar_volume_texture()
[all …]
H A Dextvol.cpp65 int extvol_bbox(void *obj, vector *min, vector *max) { in extvol_bbox() argument
68 *min = b->min; in extvol_bbox()
80 vector min, in newextvol() argument
94 xvol->min = min; in newextvol()
175 if ((ry->o.x < bx->min.x) || (ry->o.x > bx->max.x)) in ext_volume_texture()
179 tx1 = (bx->min.x - ry->o.x) / ry->d.x; in ext_volume_texture()
201 ty1 = (bx->min.y - ry->o.y) / ry->d.y; in ext_volume_texture()
223 tz1 = (bx->min.z - ry->o.z) / ry->d.z; in ext_volume_texture()
247 bln.x = fabs(bx->min.x - bx->max.x); in ext_volume_texture()
248 bln.y = fabs(bx->min.y - bx->max.y); in ext_volume_texture()
[all …]
H A Dgrid.cpp89 g->min = min; in newgrid()
108 *min = g->min; in grid_bbox()
140 vector min, max; in globalbound() local
155 min.x = -FHUGE; in globalbound()
156 min.y = -FHUGE; in globalbound()
157 min.z = -FHUGE; in globalbound()
202 min.x = -FHUGE; in cellbound()
203 min.y = -FHUGE; in cellbound()
204 min.z = -FHUGE; in cellbound()
210 if ((min.x >= cellmin.x) && (max.x <= cellmax.x) && (min.y >= cellmin.y) && in cellbound()
[all …]
H A Dbndbox.hpp57 vector min; member
62 bndbox *newbndbox(vector min, vector max);
66 static int bndbox_bbox(void *obj, vector *min, vector *max);
H A Dsphere.cpp79 static int sphere_bbox(void *obj, vector *min, vector *max) { in sphere_bbox() argument
82 min->x = s->ctr.x - s->rad; in sphere_bbox()
83 min->y = s->ctr.y - s->rad; in sphere_bbox()
84 min->z = s->ctr.z - s->rad; in sphere_bbox()
H A Dring.cpp81 static int ring_bbox(void *obj, vector *min, vector *max) { in ring_bbox() argument
84 min->x = r->ctr.x - r->outrad; in ring_bbox()
85 min->y = r->ctr.y - r->outrad; in ring_bbox()
86 min->z = r->ctr.z - r->outrad; in ring_bbox()
H A Dcylinder.cpp86 static int cylinder_bbox(void *obj, vector *min, vector *max) { in cylinder_bbox() argument
175 static int fcylinder_bbox(void *obj, vector *min, vector *max) { in fcylinder_bbox() argument
186 min->x = MYMIN(mintmp.x, maxtmp.x); in fcylinder_bbox()
187 min->y = MYMIN(mintmp.y, maxtmp.y); in fcylinder_bbox()
188 min->z = MYMIN(mintmp.z, maxtmp.z); in fcylinder_bbox()
189 min->x -= c->rad; in fcylinder_bbox()
190 min->y -= c->rad; in fcylinder_bbox()
191 min->z -= c->rad; in fcylinder_bbox()
H A Dbox.hpp57 vector min; member
61 box *newbox(void *tex, vector min, vector max);
H A Dextvol.hpp58 vector min; member
68 vector min,
H A Dcylinder.hpp70 static int cylinder_bbox(void *obj, vector *min, vector *max);
71 static int fcylinder_bbox(void *obj, vector *min, vector *max);
H A Dapi.cpp331 vector min, in rt_scalarvol() argument
339 tex, (vector)min, (vector)max, xs, ys, zs, fname, (scalarvol *)invol)); in rt_scalarvol()
342 void rt_extvol(void *tex, vector min, vector max, int samples, flt (*evaluator)(flt, flt, flt)) { in rt_extvol() argument
343 add_object((object *)newextvol(tex, (vector)min, (vector)max, samples, evaluator)); in rt_extvol()
346 void rt_box(void *tex, vector min, vector max) { in rt_box() argument
347 add_object((object *)newbox(tex, (vector)min, (vector)max)); in rt_box()
H A Dtriangle.cpp139 static int tri_bbox(void *obj, vector *min, vector *max) { in tri_bbox() argument
146 min->x = MYMIN(t->v0.x, MYMIN(v1.x, v2.x)); in tri_bbox()
147 min->y = MYMIN(t->v0.y, MYMIN(v1.y, v2.y)); in tri_bbox()
148 min->z = MYMIN(t->v0.z, MYMIN(v1.z, v2.z)); in tri_bbox()
H A Dvol.hpp54 vector min,
H A Dobjbound.hpp57 static int objinside(object *obj, vector *min, vector *max);
H A Dlight.hpp64 static int light_bbox(void *obj, vector *min, vector *max);
H A Dsphere.hpp65 static int sphere_bbox(void *obj, vector *min, vector *max);
/oneTBB/src/tbbmalloc/
H A Dshared_utils.h62 #if defined(min)
63 #undef min
67 T min ( const T& val1, const T& val2 ) {
/oneTBB/src/tbb/
H A Dmisc.h104 #if defined(min) || defined(max)
105 #undef min
114 T min ( const T& val1, const T& val2 ) { in min() function
H A Dthread_request_serializer.cpp73 new_value = min(limit, new_value); in limit_delta()
74 prev_value = min(limit, prev_value); in limit_delta()
H A Dmarket.cpp73 int max_workers = min(my_total_demand, effective_soft_limit); in update_allotment()
81 int assigned_per_priority = min(my_priority_level_demand[list_idx], unassigned_workers); in update_allotment()

123