Home
last modified time | relevance | path

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

/external/llvm-project/openmp/runtime/test/affinity/format/
Daffinity_display.1.c28 size_t nchars; in main() local
44 nchars = omp_get_affinity_format(default_format, (size_t)FORMAT_STORE); in main()
47 if (nchars > FORMAT_STORE) { in main()
49 printf(" FORMAT_STORE by %d.\n", (int)nchars - FORMAT_STORE); in main()
66 #pragma omp parallel private(tid, nchars) in main()
69 nchars = omp_capture_affinity(buffer[tid], (size_t)BUFFER_STORE, NULL); in main()
72 if (nchars > max_req_store) in main()
73 max_req_store = nchars; in main()
/external/ltp/testcases/network/nfs/nfslock01/
Dnfs_flock_dgen.c11 int i, j, k, nlines, nchars, ctype; in main() local
23 nchars = atoi(argv[2]); in main()
24 if (nchars > BUFSIZ) { in main()
40 for (j = 0; j < nchars; j++) in main()
/external/curl/lib/
Dmemdebug.c439 int nchars; in curl_dbg_log() local
450 nchars = mvsnprintf(buf, LOGLINE_BUFSIZE, format, ap); in curl_dbg_log()
453 if(nchars > LOGLINE_BUFSIZE - 1) in curl_dbg_log()
454 nchars = LOGLINE_BUFSIZE - 1; in curl_dbg_log()
456 if(nchars > 0) in curl_dbg_log()
457 fwrite(buf, 1, (size_t)nchars, curl_dbg_logfile); in curl_dbg_log()
/external/python/cpython3/Modules/_decimal/libmpdec/
Dio.c919 mpd_ssize_t nchars; /* length in chars */ member
936 dest->nchars += (n > 0 ? 1 : 0); in _mbstr_copy_char()
948 dest->nchars += n; in _mbstr_copy_ascii()
960 dest->nchars += n; in _mbstr_copy_pad()
1003 dest->nbytes = dest->nchars = 0; in _mpd_add_sep_dot()
1031 dest->nchars + n_sign < spec->min_width) { in _mpd_add_sep_dot()
1034 n_src = spec->min_width - (dest->nchars + n_sign); in _mpd_add_sep_dot()
1153 if (result->nchars < spec->min_width) { in _mpd_add_pad()
1162 add_chars = (spec->min_width - result->nchars); in _mpd_add_pad()
1210 result->nchars += add_chars; in _mpd_add_pad()
[all …]
/external/toybox/toys/posix/
Duniq.c38 long nchars = TT.s, nfields = TT.f; local
46 while (*str && nchars--) str++;
/external/python/cpython2/Objects/stringlib/
Dformatter.h308 calc_padding(Py_ssize_t nchars, Py_ssize_t width, STRINGLIB_CHAR align, in calc_padding() argument
313 if (nchars > width) in calc_padding()
314 *n_total = nchars; in calc_padding()
320 *n_total = nchars; in calc_padding()
326 *n_lpadding = *n_total - nchars; in calc_padding()
328 *n_lpadding = (*n_total - nchars) / 2; in calc_padding()
337 *n_rpadding = *n_total - nchars - *n_lpadding; in calc_padding()
343 fill_padding(STRINGLIB_CHAR *p, Py_ssize_t nchars, STRINGLIB_CHAR fill_char, in fill_padding() argument
352 STRINGLIB_FILL(p + nchars + n_lpadding, fill_char, n_rpadding); in fill_padding()
/external/python/cpython3/Python/
Dformatter_unicode.c333 calc_padding(Py_ssize_t nchars, Py_ssize_t width, Py_UCS4 align, in calc_padding() argument
338 if (nchars > width) in calc_padding()
339 *n_total = nchars; in calc_padding()
345 *n_total = nchars; in calc_padding()
351 *n_lpadding = *n_total - nchars; in calc_padding()
353 *n_lpadding = (*n_total - nchars) / 2; in calc_padding()
361 *n_rpadding = *n_total - nchars - *n_lpadding; in calc_padding()
368 Py_ssize_t nchars, in fill_padding() argument
382 pos = writer->pos + nchars + n_lpadding; in fill_padding()
/external/python/cpython2/PC/
Dgetpathp.c659 Py_ssize_t nchars; in calculate_path() local
667 nchars = lookEnd-look; in calculate_path()
668 strncpy(lookBuf, look+1, nchars); in calculate_path()
669 lookBuf[nchars] = '\0'; in calculate_path()
/external/python/cpython3/PC/
Dlauncher.c1028 parse_shebang(wchar_t * shebang_line, int nchars, wchar_t ** command, in parse_shebang() argument
1036 wchar_t * endp = shebang_line + nchars - 1; in parse_shebang()
1289 int i, j, nchars = 0; in maybe_handle_shebang() local
1343 nchars = MultiByteToWideChar(bom->code_page, in maybe_handle_shebang()
1359 nchars = header_len / sizeof(wchar_t); in maybe_handle_shebang()
1371 nchars = header_len / sizeof(wchar_t); in maybe_handle_shebang()
1386 nchars = header_len / sizeof(wchar_t); in maybe_handle_shebang()
1401 nchars = header_len / sizeof(wchar_t); in maybe_handle_shebang()
1405 if (nchars > 0) { in maybe_handle_shebang()
1406 shebang_line[--nchars] = L'\0'; in maybe_handle_shebang()
[all …]
Dgetpathp.c926 Py_ssize_t nchars; in calculate_module_search_path() local
934 nchars = lookEnd-look; in calculate_module_search_path()
935 wcsncpy(lookBuf, look+1, nchars); in calculate_module_search_path()
936 lookBuf[nchars] = L'\0'; in calculate_module_search_path()
/external/nist-sip/java/gov/nist/core/
DLexerCore.java652 public String charAsString(int nchars) { in charAsString() argument
653 return buffer.substring(ptr, ptr + nchars); in charAsString()
/external/bc/src/
Dvm.c485 vm.nchars = 0;
496 vm.nchars = (c == '\n' ? 0 : vm.nchars + 1);
Dprogram.c515 size_t len = vm.nchars + strlen(str); in bc_program_printChars()
522 vm.nchars = len > UINT16_MAX ? UINT16_MAX : (uint16_t) len; in bc_program_printChars()
548 if (c == 'n') vm.nchars = UINT16_MAX; in bc_program_printString()
Dnum.c1657 if (vm.nchars >= vm.line_len - 1) { in bc_num_printNewline()
2916 vm.nchars = 0; in bc_num_printDebug()
2928 vm.nchars = 0; in bc_num_printDigs()
/external/toybox/toys/pending/
Dbc.c43 size_t nchars;
1901 if (TT.nchars >= TT.line_len - 1) { in bc_num_printNewline()
1904 TT.nchars = 0; in bc_num_printNewline()
1914 ++TT.nchars; in bc_num_printDigits()
1919 for (exp = 0; exp < len; pow /= 10, ++TT.nchars, ++exp) { in bc_num_printDigits()
1933 TT.nchars += 1; in bc_num_printHex()
1938 TT.nchars += len; in bc_num_printHex()
1946 TT.nchars += n->neg; in bc_num_printDecimal()
2023 TT.nchars += neg; in bc_num_printBase()
4793 TT.nchars += printf("%s", str); in bc_program_printChars()
[all …]
/external/bc/include/
Dvm.h363 uint16_t nchars; member
/external/python/cpython3/Modules/_io/
Dtextio.c1795 Py_ssize_t nbytes, nchars; in textiowrapper_read_chunk() local
1878 nchars = PyUnicode_GET_LENGTH(decoded_chars); in textiowrapper_read_chunk()
1879 if (nchars > 0) in textiowrapper_read_chunk()
1880 self->b2cratio = (double) nbytes / nchars; in textiowrapper_read_chunk()
1883 if (nchars > 0) in textiowrapper_read_chunk()
/external/rust/crates/bstr/src/
Dimpls.rs342 let nchars = self.chars().count(); in fmt() localVariable
343 let remaining_pads = width.saturating_sub(nchars); in fmt()
/external/python/cpython2/Objects/
Dunicodeobject.c7215 Py_ssize_t nchars; in unicode_repeat() local
7235 nchars = len * str->length; in unicode_repeat()
7236 nbytes = ((size_t)nchars + 1u) * sizeof(Py_UNICODE); in unicode_repeat()
7237 if (nbytes / sizeof(Py_UNICODE) != ((size_t)nchars + 1u)) { in unicode_repeat()
7242 u = _PyUnicode_New(nchars); in unicode_repeat()
7252 if (done < nchars) { in unicode_repeat()
7256 while (done < nchars) { in unicode_repeat()
7257 Py_ssize_t n = (done <= nchars-done) ? done : nchars-done; in unicode_repeat()
/external/toybox/android/linux/generated/
Dglobals.h527 size_t nchars; member
/external/toybox/android/device/generated/
Dglobals.h527 size_t nchars; member
/external/toybox/android/mac/generated/
Dglobals.h527 size_t nchars; member
/external/fonttools/Lib/fontTools/subset/
D__init__.py2630 nchars = len(text_utf32)//4
2631 for u in struct.unpack('>%dL' % nchars, text_utf32):
/external/mksh/src/
Dedit.c2261 x_push(size_t nchars) in x_push() argument
2264 strndupx(killstack[killsp], xcp, nchars, AEDIT); in x_push()
/external/python/cpython3/Objects/
Dunicodeobject.c12784 Py_ssize_t nchars, n; in unicode_repeat() local
12801 nchars = len * PyUnicode_GET_LENGTH(str); in unicode_repeat()
12803 u = PyUnicode_New(nchars, PyUnicode_MAX_CHAR_VALUE(str)); in unicode_repeat()
12833 while (done < nchars) { in unicode_repeat()
12834 n = (done <= nchars-done) ? done : nchars-done; in unicode_repeat()