/third_party/python/Objects/stringlib/ |
H A D | fastsearch.h | 333 p->period = Py_MAX(p->cut, len_needle - p->cut) + 1; in _preprocess() 397 Py_ssize_t i = Py_MAX(cut, memory); in _two_way() 420 Py_ssize_t mem_jump = Py_MAX(cut, memory) - cut + 1; in _two_way() 423 window_last += Py_MAX(shift, mem_jump); in _two_way() 435 period = Py_MAX(gap, period); in _two_way()
|
H A D | localeutil.h | 56 *maxchar = Py_MAX(*maxchar, maxchar2); in InsertThousandsGrouping_fill()
|
/third_party/python/Python/ |
H A D | formatter_unicode.c | 557 *maxchar = Py_MAX(*maxchar, grouping_maxchar); in calc_number_widths() 589 *maxchar = Py_MAX(*maxchar, format->fill_char); in calc_number_widths() 592 *maxchar = Py_MAX(*maxchar, PyUnicode_MAX_CHAR_VALUE(locale->decimal_point)); in calc_number_widths() 831 maxchar = Py_MAX(maxchar, format->fill_char); in format_string_internal() 834 maxchar = Py_MAX(maxchar, valmaxchar); in format_string_internal() 930 maxchar = Py_MAX(maxchar, (Py_UCS4)x); in format_long_internal() 1379 maxchar = Py_MAX(maxchar, format->fill_char); in format_complex_internal()
|
H A D | suggestions.c | 294 max_cost = MOVE_COST * Py_MAX(size_a, size_b); in _Py_UTF8_Edit_Cost()
|
H A D | getargs.c | 2399 for (i = Py_MAX((int)nargs, posonly); i < maxargs; i++) { in _PyArg_UnpackKeywords() 2555 for (i = Py_MAX((int)nargs, posonly) - in _PyArg_UnpackKeywordsWithVararg()
|
H A D | fileutils.c | 2645 first = Py_MAX(first, 0); in _Py_closerange()
|
H A D | marshal.c | 124 delta = Py_MAX(delta, needed); in w_reserve()
|
H A D | compile.c | 4841 c->u->u_end_lineno = Py_MAX(c->u->u_lineno, c->u->u_end_lineno); in update_start_location_to_match_attr() 4843 c->u->u_end_col_offset = Py_MAX(c->u->u_col_offset, in update_start_location_to_match_attr() 8616 depth = Py_MAX(depth, instructions[len].i_oparg); in swaptimize()
|
/third_party/python/Include/ |
H A D | pymacro.h | 30 #define Py_MAX(x, y) (((x) > (y)) ? (x) : (y)) macro
|
/third_party/python/Modules/ |
H A D | overlapped.c | 1031 buf = PyBytes_FromStringAndSize(NULL, Py_MAX(size, 1)); in _overlapped_Overlapped_ReadFile_impl() 1136 buf = PyBytes_FromStringAndSize(NULL, Py_MAX(size, 1)); in _overlapped_Overlapped_WSARecv_impl() 1831 buf = PyBytes_FromStringAndSize(NULL, Py_MAX(size, 1)); in _overlapped_Overlapped_WSARecvFrom_impl()
|
H A D | socketmodule.c | 6435 char packed[Py_MAX(sizeof(struct in_addr), sizeof(struct in6_addr))]; 6485 char ip[Py_MAX(INET_ADDRSTRLEN, INET6_ADDRSTRLEN)];
|
H A D | _datetimemodule.c | 6371 return fold?Py_MIN(u1, u2):Py_MAX(u1, u2); in local_to_seconds()
|
H A D | posixmodule.c | 4459 buflen = Py_MAX(path->length, MAX_PATH); in os__getvolumepathname_impl()
|
/third_party/python/Objects/ |
H A D | unicodeobject.c | 2323 Py_ssize_t new_size = Py_MAX(index * 2, 16); in _PyUnicode_FromId() 2737 arglen = Py_MAX(length, width); in unicode_fromformat_write_str() 2932 arglen = Py_MAX(precision, width); in unicode_fromformat_arg() 9507 min_width = Py_MAX(0, min_width); in _PyUnicode_InsertThousandsGrouping() 9566 len = Py_MIN(len, Py_MAX(Py_MAX(remaining, min_width), 1)); in _PyUnicode_InsertThousandsGrouping() 9567 n_zeros = Py_MAX(0, len - remaining); in _PyUnicode_InsertThousandsGrouping() 9568 n_chars = Py_MAX(0, Py_MIN(remaining, len)); in _PyUnicode_InsertThousandsGrouping() 9597 len = Py_MAX(Py_MAX(remainin in _PyUnicode_InsertThousandsGrouping() [all...] |
H A D | floatobject.c | 1261 shift = 1 - Py_MAX(DBL_MIN_EXP - e, 0); in float_hex_impl() 1479 lsb = Py_MAX(top_exp, (long)DBL_MIN_EXP) - DBL_MANT_DIG; in float_fromhex()
|
H A D | longobject.c | 4134 shift = Py_MAX(diff, DBL_MIN_EXP) - DBL_MANT_DIG - 2; in long_true_divide() 4205 extra_bits = Py_MAX(x_bits, DBL_MIN_EXP - shift) - DBL_MANT_DIG; in long_true_divide() 5670 /* using Py_MAX(..., 1) because we always allocate space for at least in int___sizeof___impl() 5672 + Py_MAX(Py_ABS(Py_SIZE(self)), 1)*sizeof(digit); in int___sizeof___impl()
|
/third_party/python/Modules/cjkcodecs/ |
H A D | cjkcodecs.h | 145 if (_PyUnicodeWriter_Prepare(writer, 2, Py_MAX(_c1, c2)) < 0) \
|
/third_party/python/Modules/_io/ |
H A D | bytesio.c | 207 if (unshare_buffer(self, Py_MAX(endpos, (size_t)self->string_size)) < 0) { in write_bytes()
|
H A D | textio.c | 1825 size_hint = (Py_ssize_t)(Py_MAX(self->b2cratio, 1.0) * size_hint); in textiowrapper_read_chunk() 1827 chunk_size = PyLong_FromSsize_t(Py_MAX(self->chunk_size, size_hint)); in textiowrapper_read_chunk()
|
/third_party/python/Parser/ |
H A D | tokenizer.c | 357 Py_ssize_t newsize = oldsize + Py_MAX(size, oldsize >> 1); in tok_reserve_buf()
|