Home
last modified time | relevance | path

Searched refs:wlen (Results 1 – 25 of 37) sorted by relevance

12

/third_party/ltp/testcases/realtime/tools/
Dftqviz.py38 def smooth(x, wlen): argument
39 if x.size < wlen:
43 s = r_[2*x[0]-x[wlen:1:-1], x, 2*x[-1]-x[-1:-wlen:-1]]
44 w = hamming(wlen)
49 y1 = y[wlen-1:-wlen+1]
59 def smooth_fft(timefile, countfile, sample_hz, wlen): argument
66 print("Hamming Window Length: ", wlen)
85 y = smooth(xi, wlen)
95 plot(hamming(wlen))
96 axis([0,wlen-1,0,1.1])
[all …]
/third_party/openssl/apps/lib/
Dwin32_init.c58 static int process_glob(WCHAR *wstr, int wlen) in process_glob() argument
73 for (slash = 0, i = 0; i < wlen; i++) in process_glob()
79 for (i = slash; i < wlen; i++) in process_glob()
83 if (i == wlen) in process_glob()
86 saved_char = wstr[wlen]; in process_glob()
87 wstr[wlen] = L'\0'; in process_glob()
89 wstr[wlen] = saved_char; in process_glob()
145 int wlen, ulen, valid = 1; in win32_utf8argv() local
162 wlen = wcslen(wcmdline); in win32_utf8argv()
163 p = _alloca((wlen + 1) * sizeof(WCHAR)); in win32_utf8argv()
[all …]
/third_party/node/deps/openssl/openssl/apps/lib/
Dwin32_init.c58 static int process_glob(WCHAR *wstr, int wlen) in process_glob() argument
73 for (slash = 0, i = 0; i < wlen; i++) in process_glob()
79 for (i = slash; i < wlen; i++) in process_glob()
83 if (i == wlen) in process_glob()
86 saved_char = wstr[wlen]; in process_glob()
87 wstr[wlen] = L'\0'; in process_glob()
89 wstr[wlen] = saved_char; in process_glob()
145 int wlen, ulen, valid = 1; in win32_utf8argv() local
162 wlen = wcslen(wcmdline); in win32_utf8argv()
163 p = _alloca((wlen + 1) * sizeof(WCHAR)); in win32_utf8argv()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/linux/
Dcopy_file_range.c30 int fd_in, fd_out, wlen, result; in copy_file_range_0100() local
44 wlen = write(fd_in, str, strlen(str)); in copy_file_range_0100()
45 if (wlen != strlen(str)) { in copy_file_range_0100()
60 result = copy_file_range(fd_in, NULL, fd_out, NULL, wlen, 0); in copy_file_range_0100()
65 wlen -= result; in copy_file_range_0100()
66 } while (wlen > 0 && result > 0); in copy_file_range_0100()
109 int fd_in, fd_out, wlen, result; in copy_file_range_0300() local
123 wlen = write(fd_in, str, strlen(str)); in copy_file_range_0300()
124 if (wlen != strlen(str)) { in copy_file_range_0300()
139 result = copy_file_range(fd_in, NULL, fd_out, NULL, wlen, 0); in copy_file_range_0300()
/third_party/toybox/toys/posix/
Dstrings.c41 int nread, i, wlen = TT.n, count = 0; local
50 string = xzalloc(wlen+1);
65 if (count == wlen) fputc(toybuf[i], stdout);
68 if (count == wlen) {
70 if (FLAG(o) || FLAG(t)) printf(pattern, (long long)(offset - wlen));
78 if (count == wlen) xputc('\n');
/third_party/skia/src/utils/win/
DSkDWrite.cpp62 int wlen = MultiByteToWideChar(CP_UTF8, 0, skname, -1, nullptr, 0); in sk_cstring_to_wchar() local
63 if (0 == wlen) { in sk_cstring_to_wchar()
67 name->reset(wlen); in sk_cstring_to_wchar()
68 wlen = MultiByteToWideChar(CP_UTF8, 0, skname, -1, name->get(), wlen); in sk_cstring_to_wchar()
69 if (0 == wlen) { in sk_cstring_to_wchar()
/third_party/python/Modules/_io/
Dwinconsoleio.c659 DWORD wlen = (DWORD)(len / 4); in readinto() local
660 if (wlen == 0) { in readinto()
661 wlen = 1; in readinto()
668 wlen -= 1; in readinto()
670 if (len == read_len || wlen == 0) in readinto()
674 wchar_t *wbuf = read_console_w(handle, wlen, &n); in readinto()
959 DWORD len, wlen, n = 0; in _io__WindowsConsoleIO_write_impl() local
980 wlen = MultiByteToWideChar(CP_UTF8, 0, b->buf, len, NULL, 0); in _io__WindowsConsoleIO_write_impl() local
987 while (wlen > 32766 / sizeof(wchar_t)) { in _io__WindowsConsoleIO_write_impl()
989 wlen = MultiByteToWideChar(CP_UTF8, 0, b->buf, len, NULL, 0); in _io__WindowsConsoleIO_write_impl()
[all …]
/third_party/python/Parser/
Dmyreadline.c260 int wlen; in PyOS_StdioReadline() local
261 wlen = MultiByteToWideChar(CP_UTF8, 0, prompt, -1, in PyOS_StdioReadline()
263 if (wlen) { in PyOS_StdioReadline()
264 wbuf = PyMem_RawMalloc(wlen * sizeof(wchar_t)); in PyOS_StdioReadline()
271 wlen = MultiByteToWideChar(CP_UTF8, 0, prompt, -1, in PyOS_StdioReadline()
272 wbuf, wlen); in PyOS_StdioReadline()
273 if (wlen) { in PyOS_StdioReadline()
277 WriteConsoleW(hStdErr, wbuf, wlen - 1, &n, NULL); in PyOS_StdioReadline()
/third_party/python/Python/
Dfileutils.c384 decode_ascii(const char *arg, wchar_t **wstr, size_t *wlen, in decode_ascii() argument
414 if (wlen) { in decode_ascii()
415 *wlen = in - (unsigned char*)arg; in decode_ascii()
427 if (wlen != NULL) { in decode_ascii()
428 *wlen = out - res; in decode_ascii()
436 decode_current_locale(const char* arg, wchar_t **wstr, size_t *wlen, in decode_current_locale() argument
474 if (wlen != NULL) { in decode_current_locale()
475 *wlen = count; in decode_current_locale()
536 if (wlen != NULL) { in decode_current_locale()
537 *wlen = out - res; in decode_current_locale()
[all …]
/third_party/nghttp2/tests/
Dfailmalloc_test.c76 size_t wlen = nghttp2_min(avail, len); in data_feed_recv_callback() local
80 memcpy(data, df->datamark, wlen); in data_feed_recv_callback()
81 df->datamark += wlen; in data_feed_recv_callback()
82 return (ssize_t)wlen; in data_feed_recv_callback()
89 size_t wlen; in fixed_length_data_source_read_callback() local
96 wlen = len; in fixed_length_data_source_read_callback()
98 wlen = ud->data_source_length; in fixed_length_data_source_read_callback()
100 ud->data_source_length -= wlen; in fixed_length_data_source_read_callback()
104 return (ssize_t)wlen; in fixed_length_data_source_read_callback()
/third_party/f2fs-tools/fsck/
Dsegment.c439 u64 wlen; in f2fs_fix_mutable() local
445 wlen = f2fs_write_addrtag(sbi, ino, in f2fs_fix_mutable()
447 if (wlen) in f2fs_fix_mutable()
448 return wlen; in f2fs_fix_mutable()
634 u64 wlen; in f2fs_build_file() local
642 wlen = f2fs_write(sbi, de->ino, rbuf, n, off); in f2fs_build_file()
643 ASSERT((int)wlen == n); in f2fs_build_file()
645 wlen = f2fs_write_addrtag(sbi, de->ino, off, in f2fs_build_file()
647 ASSERT(!wlen); in f2fs_build_file()
648 wlen = f2fs_write_compress_data(sbi, de->ino, in f2fs_build_file()
[all …]
/third_party/python/Include/internal/
Dpycore_fileutils.h19 size_t *wlen,
34 size_t *wlen);
/third_party/lwip/src/netif/ppp/
Dupap.c604 int mlen, ulen, wlen; in upap_printpkt() local
630 wlen = p[ulen + 1]; in upap_printpkt()
631 if (len < ulen + wlen + 2) in upap_printpkt()
635 p += ulen + wlen + 2; in upap_printpkt()
636 len -= ulen + wlen + 2; in upap_printpkt()
644 ppp_print_string(pwd, wlen, printer, arg); in upap_printpkt()
/third_party/toybox/kconfig/lxdialog/
Dutil.c317 int i, prompt_len, room, wlen; in print_autowrap() local
349 wlen = strlen(word); in print_autowrap()
350 if (wlen > room || in print_autowrap()
351 (newl && wlen < 4 && sp in print_autowrap()
352 && wlen + 1 + strlen(sp) > room in print_autowrap()
354 || wlen + 1 + (sp2 - sp) > room))) { in print_autowrap()
/third_party/toybox/toys/pending/
Dsyslogd.c362 int wlen, isNetwork = *tf->filename == '@'; in logmsg() local
364 wlen = sendto(tf->logfd, omsg, olen, 0, (struct sockaddr*)&tf->saddr, sizeof(tf->saddr)); in logmsg()
365 else wlen = write_rotate(tf, len); in logmsg()
366 if (wlen < 0) perror_msg("write failed file : %s ", tf->filename + isNetwork); in logmsg()
Dtelnet.c73 int wlen = write(TT.sfd, TT.iac, TT.piac); in flush_iac() local
75 if(wlen <= 0) error_msg("IAC : send failed."); in flush_iac()
/third_party/python/PC/
Dpyshellext.cpp283 int wlen = MultiByteToWideChar(CP_ACP, 0, temp, (int)len, NULL, 0);
284 if (wlen) {
285 LPWSTR args = (LPWSTR)CoTaskMemAlloc(sizeof(WCHAR) * (wlen + 1));
286 if (MultiByteToWideChar(CP_ACP, 0, temp, (int)len, args, wlen + 1)) {
Dlauncher.c532 size_t wlen = wcslen(wanted_ver); in find_python_by_version() local
537 wlen -= wcslen(L"-32"); in find_python_by_version()
541 wlen -= wcslen(L"-64"); in find_python_by_version()
550 if ((wlen > 1) && (n != wlen)) { in find_python_by_version()
553 if (n > wlen) { in find_python_by_version()
554 n = wlen; in find_python_by_version()
/third_party/python/Objects/
Dtupleobject.c678 Py_ssize_t vlen, wlen; in tuplerichcompare() local
687 wlen = Py_SIZE(wt); in tuplerichcompare()
700 for (i = 0; i < vlen && i < wlen; i++) { in tuplerichcompare()
709 if (i >= vlen || i >= wlen) { in tuplerichcompare()
711 Py_RETURN_RICHCOMPARE(vlen, wlen, op); in tuplerichcompare()
/third_party/python/Modules/_decimal/libmpdec/
Dmpdecimal.c8151 _baseconv_to_u16(uint16_t **w, size_t wlen, mpd_uint_t wbase, in _baseconv_to_u16() argument
8156 assert(wlen > 0 && ulen > 0); in _baseconv_to_u16()
8160 if (n >= wlen) { in _baseconv_to_u16()
8164 wlen = n+1; in _baseconv_to_u16()
8176 _coeff_from_u16(mpd_t *w, mpd_ssize_t wlen, in _coeff_from_u16() argument
8183 assert(wlen > 0 && ulen > 0); in _coeff_from_u16()
8190 if (n >= wlen) { in _coeff_from_u16()
8194 wlen = n+1; in _coeff_from_u16()
8200 if (n >= wlen) { in _coeff_from_u16()
8204 wlen = n+1; in _coeff_from_u16()
[all …]
/third_party/libwebsockets/include/libwebsockets/
Dlws-tokenize.h271 lws_strcmp_wildcard(const char *wildcard, size_t wlen, const char *check,
/third_party/python/Include/cpython/
Dfileutils.h22 size_t *wlen,
/third_party/ffmpeg/libavcodec/
Daaccoder.c547 int wlen = 1024 / sce->ics.num_windows; in search_for_pns() local
553 const float freq_mult = avctx->sample_rate*0.5f/wlen; in search_for_pns()
578 cutoff = bandwidth * 2 * wlen / avctx->sample_rate; in search_for_pns()
689 int wlen = 1024 / sce->ics.num_windows; in mark_pns() local
692 const float freq_mult = avctx->sample_rate*0.5f/wlen; in mark_pns()
714 cutoff = bandwidth * 2 * wlen / avctx->sample_rate; in mark_pns()
Dopusenc.c209 int blk_len = OPUS_BLOCK_SIZE(f->size), wlen = OPUS_BLOCK_SIZE(f->size + 1); in celt_frame_mdct() local
210 int rwin = blk_len - CELT_OVERLAP, lap_dst = (wlen - blk_len - CELT_OVERLAP) >> 1; in celt_frame_mdct()
211 memset(win, 0, wlen*sizeof(float)); in celt_frame_mdct()
/third_party/cmsis/CMSIS/Core/Include/
Dcmsis_gcc.h144 uint32_t wlen; in __cmsis_start() member
149 uint32_t wlen; in __cmsis_start() member
158 for(uint32_t i=0u; i<pTable->wlen; ++i) { in __cmsis_start()
164 for(uint32_t i=0u; i<pTable->wlen; ++i) { in __cmsis_start()

12