Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 64) sorted by relevance

123

/oneTBB/examples/parallel_for/tachyon/src/
H A Dapitrigeom.cpp172 rt_vector(max.x, max.y, min.z), in rt_tri_box()
178 rt_vector(max.x, max.y, max.z), in rt_tri_box()
182 rt_vector(max.x, min.y, max.z), in rt_tri_box()
183 rt_vector(max.x, max.y, max.z)); in rt_tri_box()
188 rt_vector(min.x, max.y, max.z), in rt_tri_box()
198 rt_vector(max.x, min.y, max.z), in rt_tri_box()
199 rt_vector(max.x, max.y, max.z)); in rt_tri_box()
202 rt_vector(max.x, max.y, max.z), in rt_tri_box()
212 rt_vector(max.x, min.y, max.z), in rt_tri_box()
218 rt_vector(max.x, max.y, max.z), in rt_tri_box()
[all …]
H A Dbndbox.cpp65 bndbox *newbndbox(vector min, vector max) { in newbndbox() argument
71 b->max = max; in newbndbox()
84 *max = b->max; in bndbox_bbox()
106 if ((ry->s.x > bx->max.x) && (ry->e.x > bx->max.x)) in bndbox_intersect()
111 if ((ry->s.y > bx->max.y) && (ry->e.y > bx->max.y)) in bndbox_intersect()
116 if ((ry->s.z > bx->max.z) && (ry->e.z > bx->max.z)) in bndbox_intersect()
126 if ((ry->o.x < bx->min.x) || (ry->o.x > bx->max.x)) in bndbox_intersect()
131 tx2 = (bx->max.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()
153 ty2 = (bx->max.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
62 *max = b->max; in box_bbox()
72 box *newbox(void *tex, vector min, vector max) { in newbox() argument
80 b->max = max; in newbox()
93 if ((ry->o.x < bx->min.x) || (ry->o.x > bx->max.x)) in box_intersect()
98 tx2 = (bx->max.x - ry->o.x) / ry->d.x; in box_intersect()
120 ty2 = (bx->max.y - ry->o.y) / ry->d.y; in box_intersect()
142 tz2 = (bx->max.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 Dobjbound.cpp60 vector min, max; in globalbound() local
78 max.x = FHUGE; in globalbound()
79 max.y = FHUGE; in globalbound()
80 max.z = FHUGE; in globalbound()
82 cur->methods->bbox((void *)cur, &min, &max); in globalbound()
88 gmax->x = MYMAX(gmax->x, max.x); in globalbound()
89 gmax->y = MYMAX(gmax->y, max.y); in globalbound()
90 gmax->z = MYMAX(gmax->z, max.z); in globalbound()
96 static int objinside(object *obj, vector *min, vector *max) { in objinside() argument
104 (max->y >= omax.y) && (max->z >= omax.z)) { in objinside()
[all …]
H A Dgrid.cpp90 g->max = max; in newgrid()
109 *max = g->max; in grid_bbox()
140 vector min, max; in globalbound() local
158 max.x = FHUGE; in globalbound()
159 max.y = FHUGE; in globalbound()
160 max.z = FHUGE; in globalbound()
205 max.x = FHUGE; in cellbound()
206 max.y = FHUGE; in cellbound()
207 max.z = FHUGE; in cellbound()
211 (max.y <= cellmax.y) && (min.z >= cellmin.z) && (max.z <= cellmax.z)) { in cellbound()
[all …]
H A Dvol.cpp64 int scalarvol_bbox(void *obj, vector *min, vector *max) { in scalarvol_bbox() argument
68 *max = b->max; in scalarvol_bbox()
75 vector max, 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()
188 tx2 = (bx->max.x - ry->o.x) / ry->d.x; in scalar_volume_texture()
210 ty2 = (bx->max.y - ry->o.y) / ry->d.y; in scalar_volume_texture()
232 tz2 = (bx->max.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
69 *max = b->max; in extvol_bbox()
81 vector max, in newextvol() argument
95 xvol->max = max; in newextvol()
175 if ((ry->o.x < bx->min.x) || (ry->o.x > bx->max.x)) in ext_volume_texture()
180 tx2 = (bx->max.x - ry->o.x) / ry->d.x; in ext_volume_texture()
202 ty2 = (bx->max.y - ry->o.y) / ry->d.y; in ext_volume_texture()
224 tz2 = (bx->max.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 Dbndbox.hpp58 vector max; 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
85 max->x = s->ctr.x + s->rad; in sphere_bbox()
86 max->y = s->ctr.y + s->rad; in sphere_bbox()
87 max->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
87 max->x = r->ctr.x + r->outrad; in ring_bbox()
88 max->y = r->ctr.y + r->outrad; in ring_bbox()
89 max->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
193 max->x = MYMAX(mintmp.x, maxtmp.x); in fcylinder_bbox()
194 max->y = MYMAX(mintmp.y, maxtmp.y); in fcylinder_bbox()
195 max->z = MYMAX(mintmp.z, maxtmp.z); in fcylinder_bbox()
196 max->x += c->rad; in fcylinder_bbox()
197 max->y += c->rad; in fcylinder_bbox()
198 max->z += c->rad; in fcylinder_bbox()
H A Dbox.hpp58 vector max; member
61 box *newbox(void *tex, vector min, vector max);
H A Dgrid.hpp54 object *newgrid(int xsize, int ysize, int zsize, vector min, vector max);
72 vector max; /* the maximum coords for the box containing the grid */ member
98 static int grid_bbox(void *obj, vector *min, vector *max);
H A Dextvol.hpp59 vector max; member
69 vector max,
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.cpp332 vector max, 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
150 max->x = MYMAX(t->v0.x, MYMAX(v1.x, v2.x)); in tri_bbox()
151 max->y = MYMAX(t->v0.y, MYMAX(v1.y, v2.y)); in tri_bbox()
152 max->z = MYMAX(t->v0.z, MYMAX(v1.z, v2.z)); in tri_bbox()
H A Dvol.hpp55 vector max,
H A Dobjbound.hpp57 static int objinside(object *obj, vector *min, vector *max);
/oneTBB/examples/getting_started/sub_string_finder/
H A Dsub_string_finder_pretty.cpp39 std::size_t limit = str.size() - (std::max)(i, j); in operator ()()
69 std::vector<std::size_t> max(num_elem); in main() local
73 SubStringFinder(to_scan, max, pos)); in main()
77 if (j >= i && j < i + max[i]) in main()
85 if (j >= pos[i] && j < pos[i] + max[i]) in main()
H A Dsub_string_finder.cpp42 std::size_t limit = str.size() - (std::max)(i, j); in operator ()()
78 std::vector<std::size_t> max(num_elem); in main() local
82 SubStringFinder(to_scan, max, pos)); in main()
86 std::cout << " " << max[i] << "(" << pos[i] << ")" in main()
/oneTBB/examples/parallel_pipeline/square/
H A DREADME.md19 …put-file=value] [output-file=value] [max-slice-size=value] [silent] [-h] [n-of-threads [input-file…
25 * `max-slice-size` - the maximum number of characters in one slice.
/oneTBB/include/oneapi/tbb/
H A Dtbb_allocator.h85 size_type max = ~(std::size_t(0)) / sizeof(value_type); in max_size() local
86 return (max > 0 ? max : 1); in max_size()
/oneTBB/src/tbb/
H A Dmisc.h104 #if defined(min) || defined(max)
106 #undef max
123 T max ( const T& val1, const T& val2 ) { in max() function
/oneTBB/examples/task_arena/fractal/
H A DREADME.md24 …-frames=value] [max-of-iterations=value] [grain-size=value] [use-auto-partitioner] [silent] [singl…
29 * `max-of-iterations` - the maximum number of the fractal iterations.

123