Home
last modified time | relevance | path

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

12

/external/python/cpython3/Python/
Dbootstrap_hash.c123 n = Py_MIN(size, 1024); in py_getrandom()
125 n = Py_MIN(size, LONG_MAX); in py_getrandom()
226 Py_ssize_t len = Py_MIN(size, 256); in py_getentropy()
Dgetargs.c1803 (Py_MIN(pos, min) < i) ? "at least" : "exactly", in vgetargskeywords()
1804 Py_MIN(pos, min), nargs); in vgetargskeywords()
1952 parser->min = Py_MIN(min, len); in parser_init()
1953 parser->max = Py_MIN(max, len); in parser_init()
2152 Py_ssize_t min = Py_MIN(pos, parser->min); in vgetargskeywordsfast_impl()
Dfileutils.c1630 int isize = (int)Py_MIN(size, INT_MAX); in _Py_wgetcwd()
/external/python/cpython3/Modules/
D_bz2module.c161 c->bzs.avail_in = (unsigned int)Py_MIN(len, UINT_MAX); in compress()
177 c->bzs.avail_out = (unsigned int)Py_MIN(buffer_left, UINT_MAX); in compress()
430 bzs->avail_out = (unsigned int)Py_MIN(avail, UINT_MAX); in decompress_buf()
431 bzs->avail_in = (unsigned int)Py_MIN(d->bzs_avail_in_real, UINT_MAX); in decompress_buf()
D_cursesmodule.c1250 rtn2 = wgetnstr(self->win, rtn, Py_MIN(n, 1023)); in PyCursesWindow_GetStr()
1274 wgetnstr(self->win, rtn, Py_MIN(n, 1023)); in PyCursesWindow_GetStr()
1278 rtn2 = mvwgetnstr(self->win, y, x, rtn, Py_MIN(n, 1023)); in PyCursesWindow_GetStr()
1421 rtn2 = winnstr(self->win, rtn, Py_MIN(n, 1023)); in PyCursesWindow_InStr()
1435 rtn2 = mvwinnstr(self->win, y, x, rtn, Py_MIN(n,1023)); in PyCursesWindow_InStr()
Dzlibmodule.c136 zst->avail_in = (uInt)Py_MIN((size_t)*remains, UINT_MAX); in arrange_input_buffer()
171 zst->avail_out = (uInt)Py_MIN((size_t)(length - occupied), UINT_MAX); in arrange_output_buffer_with_maximum()
Dsha1module.c226 n = Py_MIN(inlen, (Py_ssize_t)(SHA1_BLOCKSIZE - sha1->curlen)); in sha1_process()
Doverlapped.c765 size = Py_MIN(size, (DWORD)PY_SSIZE_T_MAX); in Overlapped_ReadFile()
870 size = Py_MIN(size, (DWORD)PY_SSIZE_T_MAX); in Overlapped_WSARecv()
Dmd5module.c250 n = Py_MIN(inlen, (Py_ssize_t)(MD5_BLOCKSIZE - md5->curlen)); in md5_process()
D_sre.c1932 i = Py_MIN(i, length); in match_getslice_by_index()
1933 j = Py_MIN(j, length); in match_getslice_by_index()
D_threadmodule.c1372 timeout_max = Py_MIN(timeout_max, time_max); in PyInit__thread()
Dossaudiodev.c497 rv = _Py_write(self->fd, cp, Py_MIN(size, INT_MAX)); in oss_writeall()
D_winapi.c1656 len = (DWORD)Py_MIN(buf->len, PY_DWORD_MAX); in _winapi_WriteFile_impl()
/external/python/cpython3/Include/
Dpymacro.h5 #define Py_MIN(x, y) (((x) > (y)) ? (y) : (x)) macro
/external/python/cpython3/Programs/
D_freeze_importlib.c132 size_t i, end = Py_MIN(n + 16, data_size); in main()
/external/python/cpython3/Modules/_multiprocessing/
Dmultiprocessing.c107 length = (int)Py_MIN(buf.len, INT_MAX); in multiprocessing_send()
/external/python/cpython3/Objects/
Dframeobject.c198 min_addr = Py_MIN(new_lasti, f->f_lasti); in frame_setlineno()
331 min_delta_iblock = Py_MIN(min_delta_iblock, delta_iblock); in frame_setlineno()
Dobmalloc.c2202 memcpy(data, save, Py_MIN(nbytes, original_nbytes)); in _PyMem_DebugRawRealloc()
2206 memcpy(data, save, Py_MIN(nbytes, ERASED_SIZE)); in _PyMem_DebugRawRealloc()
2209 Py_MIN(nbytes - i, ERASED_SIZE)); in _PyMem_DebugRawRealloc()
Dbytearrayobject.c248 Py_MIN((size_t)requested_size, (size_t)Py_SIZE(self))); in PyByteArray_Resize()
1055 Py_MIN(self_size, other_size)); in bytearray_richcompare()
Dunicodeobject.c1080 copy_length = Py_MIN(length, PyUnicode_GET_LENGTH(unicode)); in resize_copy()
1091 copy_length = Py_MIN(copy_length, length); in resize_copy()
1604 how_many = Py_MIN(PyUnicode_GET_LENGTH(from)-from_start, how_many); in PyUnicode_CopyCharacters()
2549 length = Py_MIN(precision, length); in unicode_fromformat_write_str()
8150 length = Py_MIN(length, 256); in PyUnicode_BuildEncodingMap()
9424 len = Py_MIN(len, Py_MAX(Py_MAX(remaining, min_width), 1)); in _PyUnicode_InsertThousandsGrouping()
9426 n_chars = Py_MAX(0, Py_MIN(remaining, len)); in _PyUnicode_InsertThousandsGrouping()
9457 n_chars = Py_MAX(0, Py_MIN(remaining, len)); in _PyUnicode_InsertThousandsGrouping()
10129 length = Py_MIN(maxlen, length); in PyUnicode_Fill()
10860 len = Py_MIN(len1, len2); in unicode_compare()
[all …]
Dbytesobject.c1635 min_len = Py_MIN(len_a, len_b); in bytes_richcompare()
3409 writer->allocated = Py_MIN(writer->allocated, 10); in _PyBytesWriter_Alloc()
Dlongobject.c2487 strobj = PyBytes_FromStringAndSize(s, Py_MIN(len, 200)); in _PyLong_FromBytes()
3249 size_lo = Py_MIN(size_n, size); in kmul_split()
3520 const Py_ssize_t nbtouse = Py_MIN(bsize, asize); in k_lopsided_mul()
Dfloatobject.c1387 if (ndigits > Py_MIN(DBL_MIN_EXP - DBL_MANT_DIG - LONG_MIN/2, in float_fromhex()
/external/python/cpython2/Objects/
Dbytesobject.c1630 min_len = Py_MIN(len_a, len_b); in bytes_richcompare()
3364 writer->allocated = Py_MIN(writer->allocated, 10); in _PyBytesWriter_Alloc()
/external/python/cpython3/Modules/_io/
Dbufferedio.c944 n = Py_MIN(have, n); in _io__Buffered_read1_impl()

12