Home
last modified time | relevance | path

Searched refs:Py_MAX (Results 1 - 20 of 20) sorted by relevance

/third_party/python/Objects/stringlib/
H A Dfastsearch.h333 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 Dlocaleutil.h56 *maxchar = Py_MAX(*maxchar, maxchar2); in InsertThousandsGrouping_fill()
/third_party/python/Python/
H A Dformatter_unicode.c557 *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 Dsuggestions.c294 max_cost = MOVE_COST * Py_MAX(size_a, size_b); in _Py_UTF8_Edit_Cost()
H A Dgetargs.c2399 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 Dfileutils.c2645 first = Py_MAX(first, 0); in _Py_closerange()
H A Dmarshal.c124 delta = Py_MAX(delta, needed); in w_reserve()
H A Dcompile.c4841 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 Dpymacro.h30 #define Py_MAX(x, y) (((x) > (y)) ? (x) : (y)) macro
/third_party/python/Modules/
H A Doverlapped.c1031 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 Dsocketmodule.c6435 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.c6371 return fold?Py_MIN(u1, u2):Py_MAX(u1, u2); in local_to_seconds()
H A Dposixmodule.c4459 buflen = Py_MAX(path->length, MAX_PATH); in os__getvolumepathname_impl()
/third_party/python/Objects/
H A Dunicodeobject.c2323 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 Dfloatobject.c1261 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 Dlongobject.c4134 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 Dcjkcodecs.h145 if (_PyUnicodeWriter_Prepare(writer, 2, Py_MAX(_c1, c2)) < 0) \
/third_party/python/Modules/_io/
H A Dbytesio.c207 if (unshare_buffer(self, Py_MAX(endpos, (size_t)self->string_size)) < 0) { in write_bytes()
H A Dtextio.c1825 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 Dtokenizer.c357 Py_ssize_t newsize = oldsize + Py_MAX(size, oldsize >> 1); in tok_reserve_buf()

Completed in 130 milliseconds