| /oneTBB/src/tbb/tools_api/legacy/ |
| H A D | ittnotify.h | 198 … ITTNOTIFY_VOID_D0(n,d) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n… argument 199 … ITTNOTIFY_VOID_D1(n,d,x) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n… argument 200 … ITTNOTIFY_VOID_D2(n,d,x,y) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n… argument 201 … ITTNOTIFY_VOID_D3(n,d,x,y,z) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n… argument 205 …ine ITTNOTIFY_DATA_D0(n,d) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) … argument 206 …ine ITTNOTIFY_DATA_D1(n,d,x) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) … argument 207 …ine ITTNOTIFY_DATA_D2(n,d,x,y) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) … argument 208 …ine ITTNOTIFY_DATA_D3(n,d,x,y,z) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) … argument 209 …ine ITTNOTIFY_DATA_D4(n,d,x,y,z,a) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) … argument 210 …ine ITTNOTIFY_DATA_D5(n,d,x,y,z,a,b) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) … argument [all …]
|
| /oneTBB/examples/parallel_for/tachyon/src/ |
| H A D | cylinder.cpp | 92 flt t, s, tin, tout, ln, d; in cylinder_intersect() local 108 VDOT(d, D, D); in cylinder_intersect() 109 d = sqrt(d); in cylinder_intersect() 116 VDOT(d, rc, n); in cylinder_intersect() 117 d = fabs(d); in cylinder_intersect() 125 VDOT(s, ry->d, O); in cylinder_intersect() 126 s = fabs(sqrt(cyl->rad * cyl->rad - d * d) / s); in cylinder_intersect() 221 VDOT(d, rc, n); in fcylinder_intersect() 222 d = fabs(d); in fcylinder_intersect() 230 VDOT(s, ry->d, O); in fcylinder_intersect() [all …]
|
| H A D | box.cpp | 92 if (ry->d.x == 0.0) { in box_intersect() 97 tx1 = (bx->min.x - ry->o.x) / ry->d.x; in box_intersect() 98 tx2 = (bx->max.x - ry->o.x) / ry->d.x; in box_intersect() 114 if (ry->d.y == 0.0) { in box_intersect() 119 ty1 = (bx->min.y - ry->o.y) / ry->d.y; in box_intersect() 120 ty2 = (bx->max.y - ry->o.y) / ry->d.y; in box_intersect() 136 if (ry->d.z == 0.0) { in box_intersect() 141 tz1 = (bx->min.z - ry->o.z) / ry->d.z; in box_intersect() 142 tz2 = (bx->max.z - ry->o.z) / ry->d.z; in box_intersect()
|
| H A D | bndbox.cpp | 125 if (ry->d.x == 0.0) { in bndbox_intersect() 130 tx1 = (bx->min.x - ry->o.x) / ry->d.x; in bndbox_intersect() 131 tx2 = (bx->max.x - ry->o.x) / ry->d.x; in bndbox_intersect() 147 if (ry->d.y == 0.0) { in bndbox_intersect() 152 ty1 = (bx->min.y - ry->o.y) / ry->d.y; in bndbox_intersect() 153 ty2 = (bx->max.y - ry->o.y) / ry->d.y; in bndbox_intersect() 169 if (ry->d.z == 0.0) { in bndbox_intersect() 174 tz1 = (bx->min.z - ry->o.z) / ry->d.z; in bndbox_intersect() 175 tz2 = (bx->max.z - ry->o.z) / ry->d.z; in bndbox_intersect()
|
| H A D | grid.cpp | 491 if (fabs(ry->d.x) < EPSILON) { in grid_intersect() 497 else if (ry->d.x < 0.0) { in grid_intersect() 510 if (fabs(ry->d.y) < EPSILON) { in grid_intersect() 516 else if (ry->d.y < 0.0) { in grid_intersect() 535 else if (ry->d.z < 0.0) { in grid_intersect() 547 pdeltaX = ry->d; in grid_intersect() 549 pdeltaY = ry->d; in grid_intersect() 551 pdeltaZ = ry->d; in grid_intersect() 640 if (ry->d.x == 0.0) { in grid_bounds_intersect() 662 if (ry->d.y == 0.0) { in grid_bounds_intersect() [all …]
|
| H A D | vol.cpp | 182 if (ry->d.x == 0.0) { in scalar_volume_texture() 187 tx1 = (bx->min.x - ry->o.x) / ry->d.x; in scalar_volume_texture() 188 tx2 = (bx->max.x - ry->o.x) / ry->d.x; in scalar_volume_texture() 204 if (ry->d.y == 0.0) { in scalar_volume_texture() 209 ty1 = (bx->min.y - ry->o.y) / ry->d.y; in scalar_volume_texture() 210 ty2 = (bx->max.y - ry->o.y) / ry->d.y; in scalar_volume_texture() 226 if (ry->d.z == 0.0) { in scalar_volume_texture() 231 tz1 = (bx->min.z - ry->o.z) / ry->d.z; in scalar_volume_texture() 232 tz2 = (bx->max.z - ry->o.z) / ry->d.z; in scalar_volume_texture() 268 pnt.x = ((ry->o.x + (ry->d.x * t)) - bx->min.x) / bln.x; in scalar_volume_texture() [all …]
|
| H A D | shade.cpp | 126 shadowray.d = L; in shader() 186 VAddS(-2.0 * (incident->d.x * N->x + incident->d.y * N->y + incident->d.z * N->z), in shade_reflection() 188 &incident->d, in shade_reflection() 197 specray.d = R; /* reflect incident ray about normal */ in shade_reflection() 220 transray.d = incident->d; /* ray continues along incident path */ in shade_transmission() 237 V = incident->d; in shade_phong()
|
| H A D | extvol.cpp | 174 if (ry->d.x == 0.0) { in ext_volume_texture() 179 tx1 = (bx->min.x - ry->o.x) / ry->d.x; in ext_volume_texture() 180 tx2 = (bx->max.x - ry->o.x) / ry->d.x; in ext_volume_texture() 196 if (ry->d.y == 0.0) { in ext_volume_texture() 201 ty1 = (bx->min.y - ry->o.y) / ry->d.y; in ext_volume_texture() 202 ty2 = (bx->max.y - ry->o.y) / ry->d.y; in ext_volume_texture() 218 if (ry->d.z == 0.0) { in ext_volume_texture() 223 tz1 = (bx->min.z - ry->o.z) / ry->d.z; in ext_volume_texture() 224 tz2 = (bx->max.z - ry->o.z) / ry->d.z; in ext_volume_texture() 257 pnt.x = ((ry->o.x + (ry->d.x * t)) - bx->min.x) / bln.x; in ext_volume_texture() [all …]
|
| H A D | ring.cpp | 95 flt d; in ring_intersect() local 99 d = -VDot(&(rng->ctr), &(rng->norm)); in ring_intersect() 101 t = -(d + VDot(&(rng->norm), &(ry->o))); in ring_intersect() 102 td = VDot(&(rng->norm), &(ry->d)); in ring_intersect() 119 if (VDot(N, &(incident->d)) > 0.0) { in ring_normal()
|
| H A D | plane.cpp | 75 p->d = -VDot(&ctr, &p->norm); in newplane() 87 t = -(pln->d + VDot(&pln->norm, &ry->o)); in plane_intersect() 88 td = VDot(&pln->norm, &ry->d); in plane_intersect()
|
| H A D | texture.cpp | 295 int d0, d1, d; in Noise() local 331 d = p1 - p0; in Noise() 333 return (int)((int)d * oz) + p0; in Noise() 337 flt i, d; in marble_texture() local 347 d = x + 0.0006 * Noise(x, (y * 1.0), (z * 1.0)); in marble_texture() 348 d = d * (((int)d) % 25); in marble_texture() 349 i = 0.0 + 0.10 * fabs(d - 10.0 - 20.0 * ((int)d * 0.05)); in marble_texture()
|
| H A D | trace.tbb.cpp | 146 sample.d.x += ((rand() % 100) - 50) / jitterscale; in render_one_pixel() 147 sample.d.y += ((rand() % 100) - 50) / jitterscale; in render_one_pixel() 148 sample.d.z += ((rand() % 100) - 50) / jitterscale; in render_one_pixel() 216 int d = (y % 3 == 0) ? 2 : 1; in operator ()() local 218 colors[pos][0] / d, colors[pos][1] / d, colors[pos][2] / d)); in operator ()()
|
| H A D | camera.cpp | 82 ray1.d = scene->camrightvec; in camray() 89 ray1.d = scene->camupvec; in camray() 98 VSub(&projpixel, &scene->camcent, &newray.d); in camray()
|
| H A D | macros.hpp | 59 c.x = a.o.x + (a.d.x * b); \ 60 c.y = a.o.y + (a.d.y * b); \ 61 c.z = a.o.z + (a.d.z * b);
|
| H A D | quadric.cpp | 88 rd = ry->d; in quadric_intersect() 100 (q->mat.c * ((ro.x * rd.z) + (rd.x * ro.z))) + (q->mat.d * rd.x) + in quadric_intersect() 105 (2.0 * q->mat.c * ro.x * ro.z) + (2.0 * q->mat.d * ro.x) + (q->mat.e * (ro.y * ro.y)) + in quadric_intersect() 127 q->mat.c * (pnt->z - q->ctr.z) + q->mat.d); in quadric_normal() 137 if (VDot(N, &(incident->d)) > 0.0) { in quadric_normal()
|
| H A D | trace.serial.cpp | 108 sample.d.x += ((std::rand() % 100) - 50) / jitterscale; in render_one_pixel() 109 sample.d.y += ((std::rand() % 100) - 50) / jitterscale; in render_one_pixel() 110 sample.d.z += ((std::rand() % 100) - 50) / jitterscale; in render_one_pixel()
|
| H A D | trace.omp.cpp | 110 sample.d.x += ((rand() % 100) - 50) / jitterscale; in render_one_pixel() 111 sample.d.y += ((rand() % 100) - 50) / jitterscale; in render_one_pixel() 112 sample.d.z += ((rand() % 100) - 50) / jitterscale; in render_one_pixel()
|
| H A D | vector.cpp | 100 temp.x = a->o.x + (a->d.x * t); in Raypnt() 101 temp.y = a->o.y + (a->d.y * t); in Raypnt() 102 temp.z = a->o.z + (a->d.z * t); in Raypnt()
|
| /oneTBB/src/tbb/ |
| H A D | profiling.cpp | 141 if (__itt_domain* d = get_itt_domain(domain)) { in itt_make_task_group() local 145 itt_id_create(d, group_id); in itt_make_task_group() 150 __itt_task_group(d, group_id, parent_id, n); in itt_make_task_group() 156 if ( __itt_domain *d = get_itt_domain( domain ) ) { in itt_metadata_str_add() local 171 if ( __itt_domain *d = get_itt_domain( domain ) ) { in itt_metadata_ptr_add() local 185 if ( __itt_domain *d = get_itt_domain( domain ) ) { in itt_relation_add() local 196 if (__itt_domain* d = get_itt_domain(domain)) { in itt_task_begin() local 206 __itt_task_begin(d, task_id, parent_id, n); in itt_task_begin() 211 if (__itt_domain* d = get_itt_domain(domain)) { in itt_task_end() local 212 __itt_task_end(d); in itt_task_end() [all …]
|
| H A D | arena.cpp | 518 void __TBB_EXPORTED_FUNC execute(d1::task_arena_base& ta, d1::delegate_base& d) { in execute() argument 519 task_arena_impl::execute(ta, d); in execute() 730 delegated_task(d1::delegate_base& d, concurrent_monitor& s, d1::wait_context& wo) in delegated_task() argument 731 : m_delegate(d), m_monitor(s), m_wait_ctx(wo), m_completed{ false }{} in delegated_task() 740 void task_arena_impl::execute(d1::task_arena_base& ta, d1::delegate_base& d) { in execute() argument 750 concurrent_monitor::thread_context waiter((std::uintptr_t)&d); in execute() 755 delegated_task dt(d, a->my_exit_monitors, wo); in execute() 796 d(); in execute() 853 void isolate_within_arena(d1::delegate_base& d, std::intptr_t isolation) { in isolate_within_arena() argument 861 … isolation_type current_isolation = isolation ? isolation : reinterpret_cast<isolation_type>(&d); in isolate_within_arena() [all …]
|
| /oneTBB/src/tbb/tools_api/ |
| H A D | ittnotify.h | 257 … ITTNOTIFY_VOID_D0(n,d) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n… argument 258 … ITTNOTIFY_VOID_D1(n,d,x) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n… argument 259 … ITTNOTIFY_VOID_D2(n,d,x,y) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n… argument 260 … ITTNOTIFY_VOID_D3(n,d,x,y,z) (d == NULL) ? (void)0 : (!(d)->flags) ? (void)0 : (!ITTNOTIFY_NAME(n… argument 264 …ine ITTNOTIFY_DATA_D0(n,d) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) … argument 265 …ine ITTNOTIFY_DATA_D1(n,d,x) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) … argument 266 …ine ITTNOTIFY_DATA_D2(n,d,x,y) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) … argument 267 …ine ITTNOTIFY_DATA_D3(n,d,x,y,z) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) … argument 268 …ine ITTNOTIFY_DATA_D4(n,d,x,y,z,a) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) … argument 269 …ine ITTNOTIFY_DATA_D5(n,d,x,y,z,a,b) (d == NULL) ? 0 : (!(d)->flags) ? 0 : (!ITTNOTIFY_NAME(n)) … argument [all …]
|
| /oneTBB/doc/main/tbb_userguide/ |
| H A D | Flow_Graph_Single_Vs_Broadcast.rst | 63 …printf( "after single-push test, g_cnt == %d, b1==%d, b2==%d, b3==%d\n", (int)g_cnt, (int)b1, (int… 79 …printf( "after broadcast-push test, g_cnt == %d, b1==%d, b2==%d, b3==%d\n", (int)g_cnt, (int)b1, (…
|
| /oneTBB/include/oneapi/tbb/ |
| H A D | blocked_rangeNd.h | 89 … return std::any_of(my_dims.begin(), my_dims.end(), [](const tbb::blocked_range<value_type>& d) { in __TBB_requires() 90 return d.empty(); in __TBB_requires() 96 … return std::any_of(my_dims.begin(), my_dims.end(), [](const tbb::blocked_range<value_type>& d) { in __TBB_requires() 97 return d.is_divisible(); in __TBB_requires()
|
| /oneTBB/examples/graph/fgbzip2/ |
| H A D | blocksort.cpp | 634 Int32 d, in mainSimpleSort() argument 658 while (mainGtU(ptr[j - h] + d, v + d, block, quadrant, nblock, budget)) { in mainSimpleSort() 672 while (mainGtU(ptr[j - h] + d, v + d, block, quadrant, nblock, budget)) { in mainSimpleSort() 686 while (mainGtU(ptr[j - h] + d, v + d, block, quadrant, nblock, budget)) { in mainSimpleSort() 792 Int32 sp, lo, hi, d; in mainQSort3() local 808 mpop(lo, hi, d); in mainQSort3() 816 med = (Int32)mmed3(block[ptr[lo] + d], block[ptr[hi] + d], block[ptr[(lo + hi) >> 1] + d]); in mainQSort3() 860 mpush(lo, hi, d + 1); in mainQSort3() 874 nextD[0] = d; in mainQSort3() 877 nextD[1] = d; in mainQSort3() [all …]
|
| /oneTBB/examples/parallel_for/seismic/ |
| H A D | universe.cpp | 94 ValueType d = 1.0; in InitializeUniverse() local 96 d *= 1 - 1.0f / (DamperSize * DamperSize); in InitializeUniverse() 98 D[k][j] *= d; in InitializeUniverse() 99 D[UniverseHeight - 1 - k][j] *= d; in InitializeUniverse() 102 D[i][k] *= d; in InitializeUniverse() 103 D[i][UniverseWidth - 1 - k] *= d; in InitializeUniverse()
|