/dports/games/edge/Edge-1.35-source/epi/ |
H A D | pri_heap.cc | 118 if (h_idx > 0) in Adjust() 120 if (ScoreAt(h_idx) > ScoreAt(Par(h_idx))) in Adjust() 122 Swap(h_idx, Par(h_idx)); in Adjust() 124 h_idx = Par(h_idx); in Adjust() 142 Swap(h_idx, Right(h_idx)); in Adjust() 144 h_idx = Right(h_idx); in Adjust() 151 Swap(h_idx, Left(h_idx)); in Adjust() 153 h_idx = Left(h_idx); in Adjust() 181 I_Debugf("%s%d (node %d)\n", buf, ScoreAt(h_idx), heap[h_idx]); in DebugDump() 199 if (ScoreAt(Left(h_idx)) > ScoreAt(h_idx)) in Validate() [all …]
|
H A D | pri_heap.h | 60 inline int Par(int h_idx) const in Par() argument 62 return (h_idx+1) / 2 - 1; in Par() 65 inline int Left(int h_idx) const in Left() argument 67 return (h_idx+1) * 2 - 1; in Left() 70 inline int Right(int h_idx) const in Right() argument 72 return (h_idx+1) * 2; in Right() 77 return Left(h_idx) < heap_size; in HasLeft() 82 return Right(h_idx) < heap_size; in HasRight() 85 void Adjust(int h_idx); 88 void Validate(int h_idx); [all …]
|
/dports/games/tomenet/tomenet-4.6.0/src/server/ |
H A D | hooks.c | 23 bool check_hook(int h_idx); 24 void del_hook_name(int h_idx, cptr name); 63 bool check_hook(int h_idx) in check_hook() argument 65 hooks_chain *c = hooks_heads[h_idx]; in check_hook() 73 hooks_chain *new, *c = hooks_heads[h_idx]; in add_hook() 87 new->next = hooks_heads[h_idx]; in add_hook() 88 hooks_heads[h_idx] = new; in add_hook() 95 void del_hook_name(int h_idx, cptr name) in del_hook_name() argument 111 hooks_heads[h_idx] = c->next; in del_hook_name() 127 hooks_chain *c = hooks_heads[h_idx]; in vprocess_hooks_return() [all …]
|
/dports/graphics/pcl-pointclouds/pcl-pcl-1.12.0/features/include/pcl/features/impl/ |
H A D | gasd.hpp | 144 const std::size_t h_idx = bins[3] + 1; in addSampleToHistograms() local 149 hists[grid_idx][h_idx] += hist_incr; in addSampleToHistograms() 176 hists[grid_idx][h_idx] += v_xyz000; in addSampleToHistograms() 177 hists[grid_idx + 1][h_idx] += v_xyz001; in addSampleToHistograms() 178 hists[grid_idx + (grid_size + 2)][h_idx] += v_xyz010; in addSampleToHistograms() 179 hists[grid_idx + (grid_size + 3)][h_idx] += v_xyz011; in addSampleToHistograms() 207 hists[grid_idx][h_idx] += v_xyzh0000; in addSampleToHistograms() 208 hists[grid_idx][h_idx + 1] += v_xyzh0001; in addSampleToHistograms() 209 hists[grid_idx + 1][h_idx] += v_xyzh0010; in addSampleToHistograms() 210 hists[grid_idx + 1][h_idx + 1] += v_xyzh0011; in addSampleToHistograms() [all …]
|
/dports/audio/ncmpcpp/ncmpcpp-0.9.2/src/screens/ |
H A D | visualizer.cpp | 490 size_t h_idx = 0; in DrawFrequencySpectrum() local 493 const size_t i = m_bar_heights[h_idx].first; in DrawFrequencySpectrum() 500 if (h_idx < m_bar_heights.size()-1) in DrawFrequencySpectrum() 501 ++h_idx; in DrawFrequencySpectrum() 504 h = Interpolate(x, h_idx); in DrawFrequencySpectrum() 552 const double x_next = m_bar_heights[h_idx].first; in Interpolate() 553 const double h_next = m_bar_heights[h_idx].second; in Interpolate() 556 if (h_idx == 0) { in Interpolate() 558 if (h_idx < m_bar_heights.size()-1) { in Interpolate() 564 } else if (h_idx == 1) { in Interpolate() [all …]
|
/dports/devel/aegis/aegis-4.25.D510/lib/report/ |
H A D | chan_histo.rpt | 37 auto h_idx; 38 for (h_idx in keys(cs.history)) 41 h = cs.history[h_idx]; 49 if (h_idx + 1 >= count(keys(cs.history))) 52 elapsed = working_days(h.when, cs.history[h_idx + 1].when);
|
/dports/science/lammps/lammps-stable_29Sep2021/lib/kokkos/example/tutorial/Advanced_Views/02_memory_traits/ |
H A D | memory_traits.cpp | 109 idx_type_host h_idx = Kokkos::create_mirror_view(idx); in main() local 118 for (size_type j = 0; j < static_cast<size_type>(h_idx.extent(1)); ++j) { in main() 119 h_idx(i, j) = (size + i + (rand() % 500 - 250)) % size; in main() 124 Kokkos::deep_copy(idx, h_idx); in main()
|
/dports/devel/kokkos/kokkos-3.4.01/example/tutorial/Advanced_Views/02_memory_traits/ |
H A D | memory_traits.cpp | 109 idx_type_host h_idx = Kokkos::create_mirror_view(idx); in main() local 118 for (size_type j = 0; j < static_cast<size_type>(h_idx.extent(1)); ++j) { in main() 119 h_idx(i, j) = (size + i + (rand() % 500 - 250)) % size; in main() 124 Kokkos::deep_copy(idx, h_idx); in main()
|
/dports/science/sparta/sparta-20Oct2021/lib/kokkos/example/tutorial/Advanced_Views/02_memory_traits/ |
H A D | memory_traits.cpp | 109 idx_type_host h_idx = Kokkos::create_mirror_view(idx); in main() local 118 for (size_type j = 0; j < static_cast<size_type>(h_idx.extent(1)); ++j) { in main() 119 h_idx(i, j) = (size + i + (rand() % 500 - 250)) % size; in main() 124 Kokkos::deep_copy(idx, h_idx); in main()
|
/dports/graphics/darktable/darktable-3.6.1/data/kernels/ |
H A D | dwt.cl | 60 const int h_idx = mad24(y, width, x); 62 lpass[h_idx] = hat_mult * hpass[mad24(y, width, x)] + hpass[mad24(y, width, (sc - x))] 67 const int h_idx = mad24(y, width, x); 69 lpass[h_idx] = hat_mult * hpass[mad24(y, width, x)] + hpass[mad24(y, width, (x - sc))] 74 const int h_idx = mad24(y, width, x); 76 lpass[h_idx] = hat_mult * hpass[mad24(y, width, x)] + hpass[mad24(y, width, (x - sc))]
|
/dports/graphics/darktable38/darktable-3.8.0/data/kernels/ |
H A D | dwt.cl | 60 const int h_idx = mad24(y, width, x); 62 lpass[h_idx] = hat_mult * hpass[mad24(y, width, x)] + hpass[mad24(y, width, (sc - x))] 67 const int h_idx = mad24(y, width, x); 69 lpass[h_idx] = hat_mult * hpass[mad24(y, width, x)] + hpass[mad24(y, width, (x - sc))] 74 const int h_idx = mad24(y, width, x); 76 lpass[h_idx] = hat_mult * hpass[mad24(y, width, x)] + hpass[mad24(y, width, (x - sc))]
|
/dports/www/trafficserver/trafficserver-9.1.1/src/tscore/ |
H A D | HostLookup.cc | 61 auto h_idx = hostname.rbegin(); in domaincmp() local 66 if (*h_idx == '.') { in domaincmp() 67 ++h_idx; in domaincmp() 69 while (d_idx != domain.rend() && h_idx != hostname.rend()) { in domaincmp() 71 if (tolower(*d_idx) != tolower(*h_idx)) { in domaincmp() 76 ++h_idx; in domaincmp() 91 return h_idx == hostname.rend() || *h_idx == '.' || *(d_idx - 1) == '.'; in domaincmp() 92 } else if (h_idx == hostname.rend()) { in domaincmp()
|
/dports/x11/mlterm/mlterm-3.9.1/vtemu/ |
H A D | vt_char_encoding.c | 519 int h_idx; in vt_convert_ucs_to_decsp() local 523 h_idx = sizeof(ucs_to_decsp_table) / sizeof(ucs_to_decsp_table[0]) - 1; in vt_convert_ucs_to_decsp() 525 if (ucs < ucs_to_decsp_table[l_idx].ucs || ucs_to_decsp_table[h_idx].ucs < ucs) { in vt_convert_ucs_to_decsp() 530 idx = (l_idx + h_idx) / 2; in vt_convert_ucs_to_decsp() 535 h_idx = idx; in vt_convert_ucs_to_decsp() 540 if (l_idx >= h_idx) { in vt_convert_ucs_to_decsp()
|
/dports/databases/p5-Genezzo/Genezzo-0.72/lib/Genezzo/ |
H A D | Havok.pm | 431 my $h_idx = index($lin1, ': ' ); 437 if ($a_idx == $h_idx); 439 if (($a_idx >= 0) && ($h_idx >= 0)) 441 if ($a_idx > $h_idx) 454 elsif ($h_idx >= 0)
|
/dports/misc/vxl/vxl-3.3.2/contrib/brl/bbas/volm/pro/processes/ |
H A D | volm_combine_height_map_process.cxx | 177 for (unsigned h_idx = 0; (h_idx < leaf_h_info.size() && !is_pixel_found); h_idx++) { in volm_combine_height_map_process() local 178 if (!leaf_h_info[h_idx].bbox.contains(lon, lat)) in volm_combine_height_map_process() 181 leaf_h_info[h_idx].cam->global_to_img(lon, lat, gz, u, v); in volm_combine_height_map_process() 184 if (uu < leaf_h_info[h_idx].ni && vv < leaf_h_info[h_idx].nj) { in volm_combine_height_map_process() 186 vil_image_view<float> imgc(leaf_h_info[h_idx].img_r); in volm_combine_height_map_process()
|
/dports/science/lammps/lammps-stable_29Sep2021/lib/kokkos/example/tutorial/Advanced_Views/04_dualviews/ |
H A D | dual_view.cpp | 177 idx_type::t_host h_idx = idx.h_view; in main() local 180 for (size_type j = 0; j < static_cast<size_type>(h_idx.extent(1)); ++j) { in main() 181 h_idx(i, j) = (size + i + (rand() % 500 - 250)) % size; in main()
|
/dports/devel/kokkos/kokkos-3.4.01/example/tutorial/Advanced_Views/04_dualviews/ |
H A D | dual_view.cpp | 177 idx_type::t_host h_idx = idx.h_view; in main() local 180 for (size_type j = 0; j < static_cast<size_type>(h_idx.extent(1)); ++j) { in main() 181 h_idx(i, j) = (size + i + (rand() % 500 - 250)) % size; in main()
|
/dports/science/sparta/sparta-20Oct2021/lib/kokkos/example/tutorial/Advanced_Views/04_dualviews/ |
H A D | dual_view.cpp | 177 idx_type::t_host h_idx = idx.h_view; in main() local 180 for (size_type j = 0; j < static_cast<size_type>(h_idx.extent(1)); ++j) { in main() 181 h_idx(i, j) = (size + i + (rand() % 500 - 250)) % size; in main()
|
/dports/math/elpa/elpa-2019.05.002/src/GPU/ |
H A D | cuUtils_template.cu | 299 int h_idx ; in extract_hh_tau_c_kernel_real_double() local 300 h_idx = (blockIdx.x) * blockDim.x + threadIdx.x; in extract_hh_tau_c_kernel_real_double() 302 if (h_idx < n) in extract_hh_tau_c_kernel_real_double() 307 *(hh_tau + h_idx ) = *(hh + (h_idx * nbw)) ; in extract_hh_tau_c_kernel_real_double() 310 hh_tau[h_idx] = hh[h_idx * nbw] ; in extract_hh_tau_c_kernel_real_double() 315 *(hh + (h_idx * nbw)) = 1.0; in extract_hh_tau_c_kernel_real_double() 317 *(hh + (h_idx * nbw)) = 0.0; in extract_hh_tau_c_kernel_real_double() 322 hh[(h_idx * nbw)].x = 1.0; in extract_hh_tau_c_kernel_real_double() 323 hh[h_idx *nbw].y= 0.0; in extract_hh_tau_c_kernel_real_double() 327 hh[(h_idx * nbw)].x = 0.0; in extract_hh_tau_c_kernel_real_double() [all …]
|
/dports/security/arti/arti-9d0ede26801cdb182daa85c3eb5f0058dc178eb6/cargo-crates/rlimit-0.6.2/src/unix/ |
H A D | proc_limits.rs | 94 let h_idx = head[s_idx..].find('H')?; in read_proc_fs() localVariable 95 let u_idx = head[s_idx + h_idx..].find('U')?; in read_proc_fs() 96 Some((s_idx, h_idx, u_idx)) in read_proc_fs()
|
/dports/net/oha/oha-0.4.7/cargo-crates/rlimit-0.6.2/src/unix/ |
H A D | proc_limits.rs | 94 let h_idx = head[s_idx..].find('H')?; in read_proc_fs() localVariable 95 let u_idx = head[s_idx + h_idx..].find('U')?; in read_proc_fs() 96 Some((s_idx, h_idx, u_idx)) in read_proc_fs()
|
/dports/devel/pijul/pijul-1.0.0.a55/cargo-crates/rlimit-0.6.2/src/unix/ |
H A D | proc_limits.rs | 94 let h_idx = head[s_idx..].find('H')?; in read_proc_fs() localVariable 95 let u_idx = head[s_idx + h_idx..].find('U')?; in read_proc_fs() 96 Some((s_idx, h_idx, u_idx)) in read_proc_fs()
|
/dports/science/py-scipy/scipy-1.7.1/scipy/signal/ |
H A D | _upfirdn_apply.pyx | 428 cdef np.intp_t h_idx = 0 439 h_idx = t * h_per_phase 443 h_idx -= x_conv_idx 447 out[y_idx] += xval * h_trans_flip[h_idx] 448 h_idx += 1 451 out[y_idx] = out[y_idx] + x[x_conv_idx] * h_trans_flip[h_idx] 452 h_idx += 1 464 h_idx = t * h_per_phase 473 out[y_idx] += xval * h_trans_flip[h_idx] 474 h_idx += 1
|
/dports/misc/mxnet/incubator-mxnet-1.9.0/3rdparty/mkldnn/src/cpu/x64/rnn/ |
H A D | jit_uni_gru_cell_postgemm_2_bwd.hpp | 72 h_idx = 7 in generate() enumerator 125 dH(dH_idx), tmp1(tmp1_idx), h(h_idx); in generate() 174 dH(dH_idx), tmp1(tmp1_idx), h(h_idx); in generate()
|
/dports/math/onednn/oneDNN-2.5.1/src/cpu/x64/rnn/ |
H A D | jit_uni_gru_cell_postgemm_2_bwd.hpp | 72 h_idx = 7 in generate() enumerator 125 dH(dH_idx), tmp1(tmp1_idx), h(h_idx); in generate() 174 dH(dH_idx), tmp1(tmp1_idx), h(h_idx); in generate()
|