Home
last modified time | relevance | path

Searched refs:ih (Results 1 – 25 of 86) sorted by relevance

1234

/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Dadaptive_avg_pool2d_grad_impl.cu40 for (uint ih = 0; ih < input_height; ih++) { in AdaptiveAvgPool2DGradKernel() local
41 uint oh0 = start_index(ih, input_height, output_height); in AdaptiveAvgPool2DGradKernel()
42 uint oh1 = end_index(ih, input_height, output_height); in AdaptiveAvgPool2DGradKernel()
50 T delta = input_ptr[ih * input_width + iw] / (kh * kw); in AdaptiveAvgPool2DGradKernel()
74 for (uint ih = 0; ih < input_height; ih++) { in AdaptiveAvgPool2DGradKernel() local
75 uint oh0 = start_index(ih, input_height, output_height); in AdaptiveAvgPool2DGradKernel()
76 uint oh1 = end_index(ih, input_height, output_height); in AdaptiveAvgPool2DGradKernel()
84 float delta = input_ptr[ih * input_width + iw] / __uint2float_rn(kh * kw); in AdaptiveAvgPool2DGradKernel()
108 for (uint ih = 0; ih < input_height; ih++) { in AdaptiveAvgPool2DGradKernel() local
109 uint oh0 = start_index(ih, input_height, output_height); in AdaptiveAvgPool2DGradKernel()
[all …]
Dspacetodepth_impl.cu23 const size_t ic, const size_t ih, const size_t iw, in SpaceToDepth() argument
33 temp_stride = ic * ih * iw; in SpaceToDepth()
41 temp_stride /= ih; in SpaceToDepth()
63 const size_t ic, const size_t ih, const size_t iw, in CalSpaceToDepth() argument
68 size, input, in, ic, ih, iw, on, oc, oh, ow, r, output); in CalSpaceToDepth()
74 const size_t ih, const size_t iw,
81 const size_t ih, const size_t iw,
88 const size_t ih, const size_t iw,
95 const size_t ih, const size_t iw,
102 const size_t ih, const size_t iw,
[all …]
Ddepthtospace_impl.cu22 const size_t ic, const size_t ih, const size_t iw, in DepthToSpace() argument
52 input_pos = (input_pos * ih) + (output_pos_array[2] / r); in DepthToSpace()
63 const size_t ic, const size_t ih, const size_t iw, in CalDepthToSpace() argument
68 size, input, in, ic, ih, iw, on, oc, oh, ow, r, output); in CalDepthToSpace()
74 const size_t ih, const size_t iw,
81 const size_t ih, const size_t iw,
88 const size_t ih, const size_t iw,
95 const size_t ih, const size_t iw,
102 const size_t ih, const size_t iw,
109 const size_t ih, const size_t iw,
[all …]
Dadaptive_avg_pool2d_impl.cu47 for (uint ih = ih0; ih < ih1; ih++) { in AdaptiveAvgPool2DKernel() local
49 sum += input_ptr[ih * input_width + iw]; in AdaptiveAvgPool2DKernel()
78 for (uint ih = ih0; ih < ih1; ih++) { in AdaptiveAvgPool2DKernel() local
80 sum += input_ptr[ih * input_width + iw]; in AdaptiveAvgPool2DKernel()
109 for (uint ih = ih0; ih < ih1; ih++) { in AdaptiveAvgPool2DKernel() local
111 sum += input_ptr[ih * input_width + iw]; in AdaptiveAvgPool2DKernel()
140 for (uint ih = ih0; ih < ih1; ih++) { in AdaptiveAvgPool2DKernel() local
142 sum += input_ptr[ih * input_width + iw]; in AdaptiveAvgPool2DKernel()
Dspacetobatch_impl.cu22 const size_t ih, const size_t iw, const size_t ic, in SpaceToBatch() argument
37 temp_stride = ic * ih * iw; in SpaceToBatch()
45 temp_stride /= ih; in SpaceToBatch()
64 const size_t ih, const size_t iw, const size_t ic, in CalSpaceToBatch() argument
71 … size, input, in, ih, iw, ic, on, oh, ow, oc, pad_up, pad_dn, pad_lft, pad_rht, block_num, output); in CalSpaceToBatch()
76 const size_t ih, const size_t iw, const size_t ic,
82 const size_t ih, const size_t iw, const size_t ic,
88 const size_t ih, const size_t iw, const size_t ic,
94 const size_t ih, const size_t iw, const size_t ic,
100 const size_t ih, const size_t iw, const size_t ic,
[all …]
Dbatchtospace_impl.cu22 const size_t ih, const size_t iw, const size_t ic, in BatchToSpace() argument
54 input_pos = (input_pos + idx_oc) * ih; in BatchToSpace()
64 const size_t ih, const size_t iw, const size_t ic, in CalBatchToSpace() argument
70 …size, input, in, ih, iw, ic, on, oh, ow, oc, crop_up, crop_dn, crop_lft, crop_rht, block_num, outp… in CalBatchToSpace()
75 const size_t ih, const size_t iw, const size_t ic,
81 const size_t ih, const size_t iw, const size_t ic,
87 const size_t ih, const size_t iw, const size_t ic,
93 const size_t ih, const size_t iw, const size_t ic,
99 const size_t ih, const size_t iw, const size_t ic,
105 const size_t ih, const size_t iw, const size_t ic,
[all …]
/third_party/boost/libs/multiprecision/test/
Dtest_mixed_cpp_int.cpp58 i_type ih = (std::numeric_limits<i_type>::max)(); in test() local
61 add(r, ih, ih); in test()
62 BOOST_CHECK_EQUAL(r, cpp_int(ih) + cpp_int(ih)); in test()
64 multiply(r, ih, ih); in test()
65 BOOST_CHECK_EQUAL(r, cpp_int(ih) * cpp_int(ih)); in test()
69 subtract(r, il, ih); in test()
70 BOOST_CHECK_EQUAL(r, cpp_int(il) - cpp_int(ih)); in test()
71 subtract(r, ih, il); in test()
72 BOOST_CHECK_EQUAL(r, cpp_int(ih) - cpp_int(il)); in test()
/third_party/ntfs-3g/libntfs-3g/
Dindex.c207 static INDEX_ENTRY *ntfs_ie_get_first(INDEX_HEADER *ih) in ntfs_ie_get_first() argument
209 return (INDEX_ENTRY *)((u8 *)ih + le32_to_cpu(ih->entries_offset)); in ntfs_ie_get_first()
217 static u8 *ntfs_ie_get_end(INDEX_HEADER *ih) in ntfs_ie_get_end() argument
220 return (u8 *)ih + le32_to_cpu(ih->index_length); in ntfs_ie_get_end()
241 static INDEX_ENTRY *ntfs_ie_get_by_pos(INDEX_HEADER *ih, int pos) in ntfs_ie_get_by_pos() argument
247 ie = ntfs_ie_get_first(ih); in ntfs_ie_get_by_pos()
255 static INDEX_ENTRY *ntfs_ie_prev(INDEX_HEADER *ih, INDEX_ENTRY *ie) in ntfs_ie_prev() argument
262 tmp = ntfs_ie_get_first(ih); in ntfs_ie_prev()
289 void ntfs_ih_filename_dump(INDEX_HEADER *ih) in ntfs_ih_filename_dump() argument
295 ie = ntfs_ie_get_first(ih); in ntfs_ih_filename_dump()
[all …]
/third_party/toybox/toys/net/
Dping.c91 struct icmphdr *ih = (void *)toybuf; in ping_main() local
211 memset(ih, 0, sizeof(*ih)); in ping_main()
212 ih->type = (ai->ai_family == AF_INET) ? 8 : 128; in ping_main()
213 ih->un.echo.id = getpid(); in ping_main()
214 ih->un.echo.sequence = ++seq; in ping_main()
215 if (TT.s >= 4) *(unsigned *)(ih+1) = tnow; in ping_main()
217 ih->checksum = 0; in ping_main()
218 ih->checksum = pingchksum((void *)toybuf, TT.s+sizeof(*ih)); in ping_main()
219 xsendto(TT.sock, toybuf, TT.s+sizeof(*ih), TT.sa); in ping_main()
240 TT.fugit += (pkttime = millitime()-*(unsigned *)(ih+1)); in ping_main()
[all …]
/third_party/musl/porting/liteos_a/kernel/src/math/
D__rem_pio2_large.c275 int32_t jz,jx,jv,jp,jk,carry,n,iq[20],i,j,k,m,q0,ih; in __rem_pio2_large() local
313 ih = 0; in __rem_pio2_large()
317 ih = iq[jz-1]>>(23-q0); in __rem_pio2_large()
319 else if (q0 == 0) ih = iq[jz-1]>>23; in __rem_pio2_large()
320 else if (z >= 0.5) ih = 2; in __rem_pio2_large()
322 if (ih > 0) { /* q > 0.5 */ in __rem_pio2_large()
342 if (ih == 2) { in __rem_pio2_large()
407 y[0] = ih==0 ? fw : -fw; in __rem_pio2_large()
416 y[0] = ih==0 ? fw : -fw; in __rem_pio2_large()
420 y[1] = ih==0 ? fw : -fw; in __rem_pio2_large()
[all …]
/third_party/musl/src/math/
D__rem_pio2_large.c275 int32_t jz,jx,jv,jp,jk,carry,n,iq[20],i,j,k,m,q0,ih; in __rem_pio2_large() local
313 ih = 0; in __rem_pio2_large()
317 ih = iq[jz-1]>>(23-q0); in __rem_pio2_large()
319 else if (q0 == 0) ih = iq[jz-1]>>23; in __rem_pio2_large()
320 else if (z >= 0.5) ih = 2; in __rem_pio2_large()
322 if (ih > 0) { /* q > 0.5 */ in __rem_pio2_large()
342 if (ih == 2) { in __rem_pio2_large()
407 y[0] = ih==0 ? fw : -fw; in __rem_pio2_large()
416 y[0] = ih==0 ? fw : -fw; in __rem_pio2_large()
420 y[1] = ih==0 ? fw : -fw; in __rem_pio2_large()
[all …]
/third_party/ltp/testcases/kernel/syscalls/utils/
Dinotify.h86 struct inotify_handle *ih; /* associated inotify handle */ member
176 static inline void inotify_destroy(struct inotify_handle *ih) in inotify_destroy() argument
180 static inline __s32 inotify_find_watch(struct inotify_handle *ih, struct inode *inode, in inotify_find_watch() argument
186 static inline __s32 inotify_find_update_watch(struct inotify_handle *ih, in inotify_find_update_watch() argument
192 static inline __s32 inotify_add_watch(struct inotify_handle *ih, in inotify_add_watch() argument
199 static inline int inotify_rm_watch(struct inotify_handle *ih, in inotify_rm_watch() argument
205 static inline int inotify_rm_wd(struct inotify_handle *ih, __u32 wd) in inotify_rm_wd() argument
210 static inline void inotify_remove_watch_locked(struct inotify_handle *ih, in inotify_remove_watch_locked() argument
/third_party/flutter/skia/third_party/externals/sdl/src/libm/
Dk_rem_pio2.c182 int32_t jz, jx, jv, jp, jk, carry, n, iq[20], i, j, k, m, q0, ih; local
226 ih = 0;
231 ih = iq[jz - 1] >> (23 - q0);
233 ih = iq[jz - 1] >> 23;
235 ih = 2;
237 if (ih > 0) { /* q > 0.5 */
260 if (ih == 2) {
326 y[0] = (ih == 0) ? fw : -fw;
333 y[0] = (ih == 0) ? fw : -fw;
337 y[1] = (ih == 0) ? fw : -fw;
[all …]
/third_party/toybox/porting/liteos_a/toys/net/
Dping.c93 struct icmphdr *ih = (void *)toybuf; in ping_main() local
214 memset(ih, 0, sizeof(*ih)); in ping_main()
215 ih->type = (ai->ai_family == AF_INET) ? 8 : 128; in ping_main()
216 ih->un.echo.id = getpid(); in ping_main()
217 ih->un.echo.sequence = ++seq; in ping_main()
220 ih->checksum = 0; in ping_main()
221 ih->checksum = pingchksum((void *)toybuf, TT.s+sizeof(*ih)); in ping_main()
222 xsendto(TT.sock, toybuf, TT.s+sizeof(*ih), TT.sa); in ping_main()
248 ih->un.echo.sequence, 0); in ping_main()
249 if (len >= sizeof(*ih)+4) in ping_main()
/third_party/ffmpeg/libavfilter/
Dvf_convolve.c188 const int iw = (n - w) / 2, ih = (n - h) / 2; in get_input() local
196 fft_hdata[(y + ih) * n + iw + x].re = src[x] * scale; in get_input()
197 fft_hdata[(y + ih) * n + iw + x].im = 0; in get_input()
201 fft_hdata[(y + ih) * n + x].re = fft_hdata[(y + ih) * n + iw].re; in get_input()
202 fft_hdata[(y + ih) * n + x].im = 0; in get_input()
206 fft_hdata[(y + ih) * n + x].re = fft_hdata[(y + ih) * n + n - iw - 1].re; in get_input()
207 fft_hdata[(y + ih) * n + x].im = 0; in get_input()
211 for (y = 0; y < ih; y++) { in get_input()
213 fft_hdata[y * n + x].re = fft_hdata[ih * n + x].re; in get_input()
218 for (y = n - ih; y < n; y++) { in get_input()
[all …]
Dvf_transpose_npp.c307 int ih = stage->planes_in[i].height; in npptranspose_rotate() local
318 err = nppiRotate_8u_C1R(in->data[i], (NppiSize){ iw, ih }, in npptranspose_rotate()
319 in->linesize[i], (NppiRect){ 0, 0, iw, ih }, in npptranspose_rotate()
340 int ih = stage->planes_in[i].height; in npptranspose_transpose() local
344 (NppiSize){ iw, ih }); in npptranspose_transpose()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/
Ddeconv_fp16.c41 for (int ih = 0; ih < conv_param->input_h_; ih++) { in DeConvPostFp16() local
43 int oh = ih * conv_param->stride_h_ - conv_param->pad_u_; in DeConvPostFp16()
52 … int src_index = ih * src_ih_stride + iw * src_iw_stride + kh * src_kh_stride + kw * src_kw_stride; in DeConvPostFp16()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/
Ddeconv_fp32.c66 for (int ih = 0; ih < conv_param->input_h_; ih++) { in DeConvPostFp32C8() local
68 int oh = ih * conv_param->stride_h_ - conv_param->pad_u_; in DeConvPostFp32C8()
77 … int src_index = ih * src_ih_stride + iw * src_iw_stride + kh * src_kh_stride + kw * src_kw_stride; in DeConvPostFp32C8()
Dconv_depthwise_fp32.c60 int ih = ih_origin + conv_param->dilation_h_ * kh; in ConvDw() local
62 const float *src_kh = src + ih * conv_param->input_w_ * conv_param->input_channel_; in ConvDw()
215 int ih = oh * conv_param->stride_h_ - conv_param->pad_u_; in ConvDwBorder() local
216 int start_kh = MSMAX(0, UP_DIV(-ih, conv_param->dilation_h_)); in ConvDwBorder()
217 …int end_kh = MSMIN(conv_param->kernel_h_, UP_DIV(conv_param->input_h_ - ih, conv_param->dilation_h… in ConvDwBorder()
218 const float *src_h = src + ih * sliding->in_h_step_; in ConvDwBorder()
742 int ih = oh * conv_param->stride_h_ + kh * conv_param->dilation_h_ - conv_param->pad_u_; in ConvDwInitIndirection() local
743 if (ih < conv_param->input_h_ && ih >= 0) { in ConvDwInitIndirection()
749 indirect[index] = input + (ih * conv_param->input_w_ + iw) * ic_div; in ConvDwInitIndirection()
899 for (int ih = top; ih < bottom; ih++) { in DeconvDwBorder() local
[all …]
/third_party/lwip/test/unit/udp/
Dtest_udp.c177 struct ip_hdr *ih; in test_udp_create_test_packet() local
200 ih = (struct ip_hdr *)p->payload; in test_udp_create_test_packet()
201 memset(ih, 0, sizeof(*ih)); in test_udp_create_test_packet()
202 ih->dest.addr = dst_addr; in test_udp_create_test_packet()
203 ih->_len = lwip_htons(p->tot_len); in test_udp_create_test_packet()
204 ih->_ttl = 32; in test_udp_create_test_packet()
205 ih->_proto = IP_PROTO_UDP; in test_udp_create_test_packet()
206 IPH_VHL_SET(ih, 4, sizeof(struct ip_hdr) / 4); in test_udp_create_test_packet()
207 IPH_CHKSUM_SET(ih, inet_chksum(ih, sizeof(struct ip_hdr))); in test_udp_create_test_packet()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/cl/
Dpad.cl35 int ih = oh - pad_before.y;
38 if (in < 0 || in >= IN || ih < 0 || ih >= IH || iw < 0 || iw >= IW || ci + 3 < 0 || ci >= CI) {
47 FLT4 src0 = READ_IMAGE(input, smp_zero, (int2)(iw * CI_SLICES + ci / 4, in * IH + ih));
52 FLT4 src1 = READ_IMAGE(input, smp_zero, (int2)(iw * CI_SLICES + (ci + 4) / 4, in * IH + ih));
/third_party/jerryscript/jerry-libm/
Dtrig.c192 int jz, jx, jv, jp, jk, carry, n, iq[20], i, j, k, m, q0, ih; in __kernel_rem_pio2() local
241 ih = 0; in __kernel_rem_pio2()
247 ih = iq[jz - 1] >> (23 - q0); in __kernel_rem_pio2()
251 ih = iq[jz - 1] >> 23; in __kernel_rem_pio2()
255 ih = 2; in __kernel_rem_pio2()
258 if (ih > 0) /* q > 0.5 */ in __kernel_rem_pio2()
294 if (ih == 2) in __kernel_rem_pio2()
388 y[0] = (ih == 0) ? fw : -fw; in __kernel_rem_pio2()
399 y[0] = (ih == 0) ? fw : -fw; in __kernel_rem_pio2()
405 y[1] = (ih == 0) ? fw : -fw; in __kernel_rem_pio2()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/
Ddeconv_int8.c43 for (int ih = 0; ih < conv_param->input_h_; ih++) { in DeConvPostInt8C4() local
45 int oh = ih * conv_param->stride_h_ - conv_param->pad_u_; in DeConvPostInt8C4()
54 … int src_index = ih * src_ih_stride + iw * src_iw_stride + kh * src_kh_stride + kw * src_kw_stride; in DeConvPostInt8C4()
/third_party/mesa3d/src/gallium/drivers/r600/sb/
Dsb_ra_init.cpp123 unsigned ih = index >> bt_index_shift; in set() local
125 dta[ih] |= ((basetype)1u << il); in set()
129 unsigned ih = index >> bt_index_shift; in clear() local
131 assert(ih < size); in clear()
132 dta[ih] &= ~((basetype)1u << il); in clear()
136 unsigned ih = index >> bt_index_shift; in get() local
138 return dta[ih] & ((basetype)1u << il); in get()
142 unsigned ih = index >> bt_index_shift; in set() local
145 dta[ih] = (dta[ih] & ~bm) | (val << il); in set()
/third_party/flutter/skia/src/gpu/ops/
DGrTextureOp.cpp95 const SkRect& domainRect, float iw, float ih, float h, SkRect* out) { in compute_domain() argument
113 ltrb *= Sk4f(iw, ih, iw, ih); in compute_domain()
125 float iw, float ih, float h, GrQuad* out) { in compute_src_quad() argument
129 skvx::Vec<4, float> ys = srcQuad.y4f() * ih; in compute_src_quad()
382 float iw, ih, h; in tess() local
384 iw = ih = 1.f; in tess()
388 ih = 1.f / texture->height(); in tess()
401 compute_src_quad(origin, iter->localQuad(), iw, ih, h, &srcQuad); in tess()
402 compute_domain(info.domain(), this->filter(), origin, info.fDomainRect, iw, ih, h, in tess()

1234