/third_party/python/Python/ |
D | bootstrap_hash.c | 78 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()
|
D | suggestions.c | 108 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()
|
D | getargs.c | 1785 (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()
|
D | fileutils.c | 2084 int ibuflen = (int)Py_MIN(buflen, INT_MAX); in _Py_wgetcwd()
|
/third_party/python/Include/ |
D | pymacro.h | 5 #define Py_MIN(x, y) (((x) > (y)) ? (y) : (x)) macro
|
/third_party/python/Modules/_multiprocessing/ |
D | multiprocessing.c | 137 length = (int)Py_MIN(buf->len, INT_MAX); in _multiprocessing_send_impl()
|
/third_party/python/Programs/ |
D | _freeze_importlib.c | 134 size_t i, end = Py_MIN(n + 16, data_size); in main()
|
/third_party/python/Modules/ |
D | _bz2module.c | 192 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()
|
D | zlibmodule.c | 99 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()
|
D | overlapped.c | 979 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.c | 1558 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()
|
D | sha1module.c | 226 n = Py_MIN(inlen, (Py_ssize_t)(SHA1_BLOCKSIZE - sha1->curlen)); in sha1_process()
|
D | md5module.c | 250 n = Py_MIN(inlen, (Py_ssize_t)(MD5_BLOCKSIZE - md5->curlen)); in md5_process()
|
D | _sre.c | 2015 i = Py_MIN(i, length); in match_getslice_by_index() 2016 j = Py_MIN(j, length); in match_getslice_by_index()
|
D | ossaudiodev.c | 495 rv = _Py_write(self->fd, cp, Py_MIN(size, INT_MAX)); in oss_writeall()
|
D | _tracemalloc.c | 87 static const unsigned long MAX_NFRAME = Py_MIN(UINT16_MAX, ((SIZE_MAX - sizeof(traceback_t)) / size…
|
D | _threadmodule.c | 1646 timeout_max = Py_MIN(timeout_max, time_max); in thread_module_exec()
|
D | _winapi.c | 1835 len = (DWORD)Py_MIN(buf->len, PY_DWORD_MAX); in _winapi_WriteFile_impl()
|
/third_party/python/Objects/ |
D | obmalloc.c | 2608 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()
|
D | bytearrayobject.c | 227 Py_MIN((size_t)requested_size, (size_t)Py_SIZE(self))); in PyByteArray_Resize() 1044 Py_MIN(self_size, other_size)); in bytearray_richcompare()
|
D | unicodeobject.c | 1201 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 …]
|
D | longobject.c | 2512 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()
|
D | bytesobject.c | 1570 min_len = Py_MIN(len_a, len_b); in bytes_richcompare() 3449 writer->allocated = Py_MIN(writer->allocated, 10); in _PyBytesWriter_Alloc()
|
D | floatobject.c | 1386 if (ndigits > Py_MIN(DBL_MIN_EXP - DBL_MANT_DIG - LONG_MIN/2, in float_fromhex()
|
/third_party/python/Modules/_io/ |
D | bufferedio.c | 934 n = Py_MIN(have, n); in _io__Buffered_read1_impl()
|