Home
last modified time | relevance | path

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

12

/third_party/python/Python/
Dbootstrap_hash.c78 DWORD chunk = (DWORD)Py_MIN(size, PY_DWORD_MAX); in win32_urandom()
132 n = Py_MIN(size, 1024); in py_getrandom()
134 n = Py_MIN(size, LONG_MAX); in py_getrandom()
245 Py_ssize_t len = Py_MIN(size, 256); in py_getentropy()
Dsuggestions.c108 size_t insert_delete = Py_MIN(result, distance) + MOVE_COST; in levenshtein_distance()
109 result = Py_MIN(insert_delete, substitute); in levenshtein_distance()
158 max_distance = Py_MIN(max_distance, suggestion_distance - 1); in calculate_suggestions()
Dgetargs.c1785 (Py_MIN(pos, min) < i) ? "at least" : "exactly", in vgetargskeywords()
1786 Py_MIN(pos, min), in vgetargskeywords()
1787 Py_MIN(pos, min) == 1 ? "" : "s", in vgetargskeywords()
1939 parser->min = Py_MIN(min, len); in parser_init()
1940 parser->max = Py_MIN(max, len); in parser_init()
2148 Py_ssize_t min = Py_MIN(pos, parser->min); in vgetargskeywordsfast_impl()
2305 minposonly = Py_MIN(posonly, minpos); in _PyArg_UnpackKeywords()
Dfileutils.c2084 int ibuflen = (int)Py_MIN(buflen, INT_MAX); in _Py_wgetcwd()
/third_party/python/Include/
Dpymacro.h5 #define Py_MIN(x, y) (((x) > (y)) ? (y) : (x)) macro
/third_party/python/Modules/_multiprocessing/
Dmultiprocessing.c137 length = (int)Py_MIN(buf->len, INT_MAX); in _multiprocessing_send_impl()
/third_party/python/Programs/
D_freeze_importlib.c134 size_t i, end = Py_MIN(n + 16, data_size); in main()
/third_party/python/Modules/
D_bz2module.c192 c->bzs.avail_in = (unsigned int)Py_MIN(len, UINT_MAX); in compress()
455 bzs->avail_in = (unsigned int)Py_MIN(d->bzs_avail_in_real, UINT_MAX); in decompress_buf()
Dzlibmodule.c99 Py_ssize_t window_size = Py_MIN((size_t)allocated, UINT32_MAX); in OutputBuffer_WindowInitWithSize()
128 Py_ssize_t window_size = Py_MIN((size_t)window->left_bytes, UINT32_MAX); in OutputBuffer_WindowGrow()
301 zst->avail_in = (uInt)Py_MIN((size_t)*remains, UINT_MAX); in arrange_input_buffer()
Doverlapped.c979 size = Py_MIN(size, (DWORD)PY_SSIZE_T_MAX); in _overlapped_Overlapped_ReadFile_impl()
1086 size = Py_MIN(size, (DWORD)PY_SSIZE_T_MAX); in _overlapped_Overlapped_WSARecv_impl()
1787 size = Py_MIN(size, (DWORD)PY_SSIZE_T_MAX); in _overlapped_Overlapped_WSARecvFrom_impl()
D_cursesmodule.c1558 rtn2 = wgetnstr(self->win, rtn, Py_MIN(n, 1023)); in PyCursesWindow_GetStr()
1582 wgetnstr(self->win, rtn, Py_MIN(n, 1023)); in PyCursesWindow_GetStr()
1586 rtn2 = mvwgetnstr(self->win, y, x, rtn, Py_MIN(n, 1023)); in PyCursesWindow_GetStr()
1759 rtn2 = winnstr(self->win, rtn, Py_MIN(n, 1023)); in PyCursesWindow_InStr()
1773 rtn2 = mvwinnstr(self->win, y, x, rtn, Py_MIN(n,1023)); in PyCursesWindow_InStr()
Dsha1module.c226 n = Py_MIN(inlen, (Py_ssize_t)(SHA1_BLOCKSIZE - sha1->curlen)); in sha1_process()
Dmd5module.c250 n = Py_MIN(inlen, (Py_ssize_t)(MD5_BLOCKSIZE - md5->curlen)); in md5_process()
D_sre.c2015 i = Py_MIN(i, length); in match_getslice_by_index()
2016 j = Py_MIN(j, length); in match_getslice_by_index()
Dossaudiodev.c495 rv = _Py_write(self->fd, cp, Py_MIN(size, INT_MAX)); in oss_writeall()
D_tracemalloc.c87 static const unsigned long MAX_NFRAME = Py_MIN(UINT16_MAX, ((SIZE_MAX - sizeof(traceback_t)) / size…
D_threadmodule.c1646 timeout_max = Py_MIN(timeout_max, time_max); in thread_module_exec()
D_winapi.c1835 len = (DWORD)Py_MIN(buf->len, PY_DWORD_MAX); in _winapi_WriteFile_impl()
/third_party/python/Objects/
Dobmalloc.c2608 memcpy(data, save, Py_MIN(nbytes, original_nbytes)); in _PyMem_DebugRawRealloc()
2612 memcpy(data, save, Py_MIN(nbytes, ERASED_SIZE)); in _PyMem_DebugRawRealloc()
2615 Py_MIN(nbytes - i, ERASED_SIZE)); in _PyMem_DebugRawRealloc()
Dbytearrayobject.c227 Py_MIN((size_t)requested_size, (size_t)Py_SIZE(self))); in PyByteArray_Resize()
1044 Py_MIN(self_size, other_size)); in bytearray_richcompare()
Dunicodeobject.c1201 copy_length = Py_MIN(length, PyUnicode_GET_LENGTH(unicode)); in resize_copy()
1212 copy_length = Py_MIN(copy_length, length); in resize_copy()
1745 how_many = Py_MIN(PyUnicode_GET_LENGTH(from)-from_start, how_many); in PyUnicode_CopyCharacters()
2789 length = Py_MIN(precision, length); in unicode_fromformat_write_str()
8616 length = Py_MIN(length, 256); in PyUnicode_BuildEncodingMap()
9893 len = Py_MIN(len, Py_MAX(Py_MAX(remaining, min_width), 1)); in _PyUnicode_InsertThousandsGrouping()
9895 n_chars = Py_MAX(0, Py_MIN(remaining, len)); in _PyUnicode_InsertThousandsGrouping()
9926 n_chars = Py_MAX(0, Py_MIN(remaining, len)); in _PyUnicode_InsertThousandsGrouping()
10602 length = Py_MIN(maxlen, length); in PyUnicode_Fill()
11352 len = Py_MIN(len1, len2); in unicode_compare()
[all …]
Dlongobject.c2512 strobj = PyBytes_FromStringAndSize(s, Py_MIN(len, 200)); in _PyLong_FromBytes()
3258 size_lo = Py_MIN(size_n, size); in kmul_split()
3529 const Py_ssize_t nbtouse = Py_MIN(bsize, asize); in k_lopsided_mul()
5372 Py_ssize_t ndigits_fast = Py_MIN(ndigits, PY_SSIZE_T_MAX/PyLong_SHIFT); in int_bit_count_impl()
Dbytesobject.c1570 min_len = Py_MIN(len_a, len_b); in bytes_richcompare()
3449 writer->allocated = Py_MIN(writer->allocated, 10); in _PyBytesWriter_Alloc()
Dfloatobject.c1386 if (ndigits > Py_MIN(DBL_MIN_EXP - DBL_MANT_DIG - LONG_MIN/2, in float_fromhex()
/third_party/python/Modules/_io/
Dbufferedio.c934 n = Py_MIN(have, n); in _io__Buffered_read1_impl()

12