Searched refs:Py_MAX (Results 1 – 16 of 16) sorted by relevance
/external/python/cpython3/Python/ |
D | formatter_unicode.c | 550 *maxchar = Py_MAX(*maxchar, grouping_maxchar); in calc_number_widths() 582 *maxchar = Py_MAX(*maxchar, format->fill_char); in calc_number_widths() 585 *maxchar = Py_MAX(*maxchar, PyUnicode_MAX_CHAR_VALUE(locale->decimal_point)); in calc_number_widths() 810 maxchar = Py_MAX(maxchar, format->fill_char); in format_string_internal() 813 maxchar = Py_MAX(maxchar, valmaxchar); in format_string_internal() 902 maxchar = Py_MAX(maxchar, (Py_UCS4)x); in format_long_internal() 1347 maxchar = Py_MAX(maxchar, format->fill_char); in format_complex_internal()
|
D | marshal.c | 122 delta = Py_MAX(delta, needed); in w_reserve()
|
/external/python/cpython3/Objects/stringlib/ |
D | localeutil.h | 56 *maxchar = Py_MAX(*maxchar, maxchar2); in InsertThousandsGrouping_fill()
|
/external/python/cpython3/Include/ |
D | pymacro.h | 8 #define Py_MAX(x, y) (((x) > (y)) ? (x) : (y)) macro
|
/external/python/cpython3/Objects/ |
D | unicodeobject.c | 2551 arglen = Py_MAX(length, width); in unicode_fromformat_write_str() 2746 arglen = Py_MAX(precision, width); in unicode_fromformat_arg() 9141 maxchar = Py_MAX(maxchar, ch); in PyUnicode_TransformDecimalToASCII() 9365 min_width = Py_MAX(0, min_width); in _PyUnicode_InsertThousandsGrouping() 9424 len = Py_MIN(len, Py_MAX(Py_MAX(remaining, min_width), 1)); in _PyUnicode_InsertThousandsGrouping() 9425 n_zeros = Py_MAX(0, len - remaining); in _PyUnicode_InsertThousandsGrouping() 9426 n_chars = Py_MAX(0, Py_MIN(remaining, len)); in _PyUnicode_InsertThousandsGrouping() 9455 len = Py_MAX(Py_MAX(remaining, min_width), 1); in _PyUnicode_InsertThousandsGrouping() 9456 n_zeros = Py_MAX(0, len - remaining); in _PyUnicode_InsertThousandsGrouping() 9457 n_chars = Py_MAX(0, Py_MIN(remaining, len)); in _PyUnicode_InsertThousandsGrouping() [all …]
|
D | floatobject.c | 1226 shift = 1 - Py_MAX(DBL_MIN_EXP - e, 0); in float_hex_impl() 1444 lsb = Py_MAX(top_exp, (long)DBL_MIN_EXP) - DBL_MANT_DIG; in float_fromhex()
|
D | frameobject.c | 199 max_addr = Py_MAX(new_lasti, f->f_lasti); in frame_setlineno()
|
D | longobject.c | 3875 shift = Py_MAX(diff, DBL_MIN_EXP) - DBL_MANT_DIG - 2; in long_true_divide() 3946 extra_bits = Py_MAX(x_bits, DBL_MIN_EXP - shift) - DBL_MANT_DIG; in long_true_divide()
|
/external/python/cpython3/Modules/cjkcodecs/ |
D | cjkcodecs.h | 145 if (_PyUnicodeWriter_Prepare(writer, 2, Py_MAX(_c1, c2)) < 0) \
|
/external/python/cpython3/Modules/ |
D | overlapped.c | 767 buf = PyBytes_FromStringAndSize(NULL, Py_MAX(size, 1)); in Overlapped_ReadFile() 872 buf = PyBytes_FromStringAndSize(NULL, Py_MAX(size, 1)); in Overlapped_WSARecv()
|
D | socketmodule.c | 6089 char packed[Py_MAX(sizeof(struct in_addr), sizeof(struct in6_addr))]; 6139 char ip[Py_MAX(INET_ADDRSTRLEN, INET6_ADDRSTRLEN)];
|
D | posixmodule.c | 3859 buflen = Py_MAX(path->length, MAX_PATH); in os__getvolumepathname_impl() 7808 for (i = Py_MAX(fd_low, 0); i < fd_high; i++) in os_closerange_impl()
|
D | _datetimemodule.c | 5937 return fold?Py_MIN(u1, u2):Py_MAX(u1, u2); in local_to_seconds()
|
/external/python/cpython3/Modules/_io/ |
D | bytesio.c | 173 if (unshare_buffer(self, Py_MAX(endpos, (size_t)self->string_size)) < 0) in write_bytes()
|
D | textio.c | 1732 size_hint = (Py_ssize_t)(Py_MAX(self->b2cratio, 1.0) * size_hint); in textiowrapper_read_chunk() 1734 chunk_size = PyLong_FromSsize_t(Py_MAX(self->chunk_size, size_hint)); in textiowrapper_read_chunk()
|
/external/python/cpython3/Doc/c-api/ |
D | intro.rst | 123 .. c:macro:: Py_MAX(x, y)
|