Searched refs:mformat_code (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython3/Modules/clinic/ |
D | arraymodule.c.h | 523 enum machine_format_code mformat_code, 532 enum machine_format_code mformat_code; in array__array_reconstructor() local 556 mformat_code = _PyLong_AsInt(args[2]); in array__array_reconstructor() 557 if (mformat_code == -1 && PyErr_Occurred()) { in array__array_reconstructor() 561 … return_value = array__array_reconstructor_impl(module, arraytype, typecode, mformat_code, items); in array__array_reconstructor()
|
/external/python/cpython3/Modules/ |
D | arraymodule.c | 1971 enum machine_format_code mformat_code, in array__array_reconstructor_impl() argument 2000 if (mformat_code < MACHINE_FORMAT_CODE_MIN || in array__array_reconstructor_impl() 2001 mformat_code > MACHINE_FORMAT_CODE_MAX) { in array__array_reconstructor_impl() 2014 if (mformat_code == typecode_to_mformat_code((char)typecode) || in array__array_reconstructor_impl() 2015 mformat_code == UNKNOWN_FORMAT) { in array__array_reconstructor_impl() 2024 if (Py_SIZE(items) % mformat_descriptors[mformat_code].size != 0) { in array__array_reconstructor_impl() 2029 switch (mformat_code) { in array__array_reconstructor_impl() 2033 int le = (mformat_code == IEEE_754_FLOAT_LE) ? 1 : 0; in array__array_reconstructor_impl() 2055 int le = (mformat_code == IEEE_754_DOUBLE_LE) ? 1 : 0; in array__array_reconstructor_impl() 2076 int byteorder = (mformat_code == UTF16_LE) ? -1 : 1; in array__array_reconstructor_impl() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_array.py | 148 valid_typecodes, mformat_code, struct_fmt, values = testcase 156 array.array, typecode, mformat_code, arraystr) 169 mformat_code, encoding = testcase 172 array.array, 'u', mformat_code, teststr.encode(encoding))
|