Home
last modified time | relevance | path

Searched refs:Py_MAX (Results 1 – 16 of 16) sorted by relevance

/external/python/cpython3/Python/
Dformatter_unicode.c553 *maxchar = Py_MAX(*maxchar, grouping_maxchar); in calc_number_widths()
585 *maxchar = Py_MAX(*maxchar, format->fill_char); in calc_number_widths()
588 *maxchar = Py_MAX(*maxchar, PyUnicode_MAX_CHAR_VALUE(locale->decimal_point)); in calc_number_widths()
813 maxchar = Py_MAX(maxchar, format->fill_char); in format_string_internal()
816 maxchar = Py_MAX(maxchar, valmaxchar); in format_string_internal()
905 maxchar = Py_MAX(maxchar, (Py_UCS4)x); in format_long_internal()
1350 maxchar = Py_MAX(maxchar, format->fill_char); in format_complex_internal()
Dmarshal.c122 delta = Py_MAX(delta, needed); in w_reserve()
Dgetargs.c2448 for (i = Py_MAX((int)nargs, posonly); i < maxargs; i++) { in _PyArg_UnpackKeywords()
/external/python/cpython3/Objects/stringlib/
Dlocaleutil.h56 *maxchar = Py_MAX(*maxchar, maxchar2); in InsertThousandsGrouping_fill()
/external/python/cpython3/Include/
Dpymacro.h8 #define Py_MAX(x, y) (((x) > (y)) ? (x) : (y)) macro
/external/python/cpython3/Objects/
Dunicodeobject.c2690 arglen = Py_MAX(length, width); in unicode_fromformat_write_str()
2885 arglen = Py_MAX(precision, width); in unicode_fromformat_arg()
9340 maxchar = Py_MAX(maxchar, ch); in PyUnicode_TransformDecimalToASCII()
9565 min_width = Py_MAX(0, min_width); in _PyUnicode_InsertThousandsGrouping()
9624 len = Py_MIN(len, Py_MAX(Py_MAX(remaining, min_width), 1)); in _PyUnicode_InsertThousandsGrouping()
9625 n_zeros = Py_MAX(0, len - remaining); in _PyUnicode_InsertThousandsGrouping()
9626 n_chars = Py_MAX(0, Py_MIN(remaining, len)); in _PyUnicode_InsertThousandsGrouping()
9655 len = Py_MAX(Py_MAX(remaining, min_width), 1); in _PyUnicode_InsertThousandsGrouping()
9656 n_zeros = Py_MAX(0, len - remaining); in _PyUnicode_InsertThousandsGrouping()
9657 n_chars = Py_MAX(0, Py_MIN(remaining, len)); in _PyUnicode_InsertThousandsGrouping()
[all …]
Dfloatobject.c1205 shift = 1 - Py_MAX(DBL_MIN_EXP - e, 0); in float_hex_impl()
1423 lsb = Py_MAX(top_exp, (long)DBL_MIN_EXP) - DBL_MANT_DIG; in float_fromhex()
Dlongobject.c3985 shift = Py_MAX(diff, DBL_MIN_EXP) - DBL_MANT_DIG - 2; in long_true_divide()
4056 extra_bits = Py_MAX(x_bits, DBL_MIN_EXP - shift) - DBL_MANT_DIG; in long_true_divide()
/external/python/cpython3/Modules/cjkcodecs/
Dcjkcodecs.h145 if (_PyUnicodeWriter_Prepare(writer, 2, Py_MAX(_c1, c2)) < 0) \
/external/python/cpython3/Modules/
Doverlapped.c904 buf = PyBytes_FromStringAndSize(NULL, Py_MAX(size, 1)); in Overlapped_ReadFile()
1009 buf = PyBytes_FromStringAndSize(NULL, Py_MAX(size, 1)); in Overlapped_WSARecv()
1669 buf = PyBytes_FromStringAndSize(NULL, Py_MAX(size, 1)); in Overlapped_WSARecvFrom()
Dsocketmodule.c6397 char packed[Py_MAX(sizeof(struct in_addr), sizeof(struct in6_addr))];
6447 char ip[Py_MAX(INET_ADDRSTRLEN, INET6_ADDRSTRLEN)];
Dposixmodule.c4304 buflen = Py_MAX(path->length, MAX_PATH); in os__getvolumepathname_impl()
9120 lohi[0] = Py_MAX(fd_low, 0); in os_closerange_impl()
9124 fd_low = Py_MAX(fd_low, 0); in os_closerange_impl()
D_datetimemodule.c6176 return fold?Py_MIN(u1, u2):Py_MAX(u1, u2); in local_to_seconds()
/external/python/cpython3/Modules/_io/
Dbytesio.c207 if (unshare_buffer(self, Py_MAX(endpos, (size_t)self->string_size)) < 0) { in write_bytes()
Dtextio.c1848 size_hint = (Py_ssize_t)(Py_MAX(self->b2cratio, 1.0) * size_hint); in textiowrapper_read_chunk()
1850 chunk_size = PyLong_FromSsize_t(Py_MAX(self->chunk_size, size_hint)); in textiowrapper_read_chunk()
/external/python/cpython3/Doc/c-api/
Dintro.rst142 .. c:macro:: Py_MAX(x, y)