/external/u-boot/board/synopsys/hsdk/ |
D | headerize-hsdk.py | 86 file.write(arc_id.to_bytes(2, byteorder='little')) 87 file.write(uboot_img_size.to_bytes(4, byteorder='little')) 88 file.write(check_sum.to_bytes(1, byteorder='little')) 89 file.write(image_copy_adr.to_bytes(4, byteorder='little')) 90 file.write(magic1.to_bytes(5, byteorder='big')) 91 file.write(jump_address.to_bytes(4, byteorder='little')) 92 for i in range(12): file.write(0xFF.to_bytes(1, byteorder='little')) 93 for byte in magic2: file.write(byte.to_bytes(36, byteorder='big')) 95 file.write(0xFF.to_bytes(1, byteorder='little')) 96 file.write(flash_address.to_bytes(4, byteorder='little')) [all …]
|
/external/python/cpython3/Lib/encodings/ |
D | utf_32.py | 21 if sys.byteorder == 'little': 43 if sys.byteorder == 'little': 55 (output, consumed, byteorder) = \ 57 if byteorder == -1: 59 elif byteorder == 1: 80 addstate = int((sys.byteorder == "big") != 90 if sys.byteorder == "big" 94 if sys.byteorder == "big" 111 if sys.byteorder == 'little': 129 (object, consumed, byteorder) = \ [all …]
|
D | utf_16.py | 26 if sys.byteorder == 'little': 48 if sys.byteorder == 'little': 60 (output, consumed, byteorder) = \ 62 if byteorder == -1: 64 elif byteorder == 1: 85 addstate = int((sys.byteorder == "big") != 95 if sys.byteorder == "big" 99 if sys.byteorder == "big" 116 if sys.byteorder == 'little': 134 (object, consumed, byteorder) = \ [all …]
|
/external/python/cpython2/Lib/encodings/ |
D | utf_32.py | 21 if sys.byteorder == 'little': 43 if sys.byteorder == 'little': 55 (output, consumed, byteorder) = \ 57 if byteorder == -1: 59 elif byteorder == 1: 80 addstate = int((sys.byteorder == "big") != 90 if sys.byteorder == "big" 94 if sys.byteorder == "big" 111 if sys.byteorder == 'little': 129 (object, consumed, byteorder) = \ [all …]
|
D | utf_16.py | 26 if sys.byteorder == 'little': 48 if sys.byteorder == 'little': 60 (output, consumed, byteorder) = \ 62 if byteorder == -1: 64 elif byteorder == 1: 87 if sys.byteorder == 'little': 105 (object, consumed, byteorder) = \ 107 if byteorder == -1: 109 elif byteorder == 1:
|
/external/python/cpython3/Modules/ |
D | _codecsmodule.c | 338 int byteorder = 0; in _codecs_utf_16_decode_impl() local 342 errors, &byteorder, in _codecs_utf_16_decode_impl() 360 int byteorder = -1; in _codecs_utf_16_le_decode_impl() local 364 errors, &byteorder, in _codecs_utf_16_le_decode_impl() 382 int byteorder = 1; in _codecs_utf_16_be_decode_impl() local 386 errors, &byteorder, in _codecs_utf_16_be_decode_impl() 409 const char *errors, int byteorder, int final) in _codecs_utf_16_ex_decode_impl() argument 416 errors, &byteorder, in _codecs_utf_16_ex_decode_impl() 420 return Py_BuildValue("Nni", decoded, consumed, byteorder); in _codecs_utf_16_ex_decode_impl() 436 int byteorder = 0; in _codecs_utf_32_decode_impl() local [all …]
|
/external/python/cpython3/Objects/clinic/ |
D | longobject.c.h | 145 int_to_bytes_impl(PyObject *self, Py_ssize_t length, PyObject *byteorder, 155 PyObject *byteorder; in int_to_bytes() local 159 &length, &byteorder, &is_signed)) { in int_to_bytes() 162 return_value = int_to_bytes_impl(self, length, byteorder, is_signed); in int_to_bytes() 193 PyObject *byteorder, int is_signed); 202 PyObject *byteorder; in int_from_bytes() local 206 &bytes_obj, &byteorder, &is_signed)) { in int_from_bytes() 209 return_value = int_from_bytes_impl(type, bytes_obj, byteorder, is_signed); in int_from_bytes()
|
/external/python/cpython2/Modules/ |
D | _codecsmodule.c | 284 int byteorder = 0; in utf_16_decode() local 294 &byteorder, final ? NULL : &consumed); in utf_16_decode() 307 int byteorder = -1; in utf_16_le_decode() local 318 &byteorder, final ? NULL : &consumed); in utf_16_le_decode() 331 int byteorder = 1; in utf_16_be_decode() local 342 &byteorder, final ? NULL : &consumed); in utf_16_be_decode() 363 int byteorder = 0; in utf_16_ex_decode() local 369 &pbuf, &errors, &byteorder, &final)) in utf_16_ex_decode() 373 &byteorder, final ? NULL : &consumed); in utf_16_ex_decode() 377 tuple = Py_BuildValue("Oni", unicode, consumed, byteorder); in utf_16_ex_decode() [all …]
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | G__l_o_c.py | 35 if sys.byteorder != "big": self.locations.byteswap() 39 if sys.byteorder != "big": self.attribIds.byteswap() 45 if sys.byteorder != "big": self.locations.byteswap() 47 if sys.byteorder != "big": self.locations.byteswap() 49 if sys.byteorder != "big": self.attribIds.byteswap() 51 if sys.byteorder != "big": self.attribIds.byteswap()
|
D | G_P_K_G_.py | 28 if sys.byteorder != "big": GMAPoffsets.byteswap() 38 if sys.byteorder != "big": glyphletOffsets.byteswap() 59 if sys.byteorder != "big": gmapArray.byteswap() 67 if sys.byteorder != "big": glyphletArray.byteswap()
|
D | T_S_I__5.py | 21 if sys.byteorder != "big": a.byteswap() 31 if sys.byteorder != "big": a.byteswap()
|
D | _c_v_t.py | 13 if sys.byteorder != "big": values.byteswap() 18 if sys.byteorder != "big": values.byteswap()
|
D | _l_o_c_a.py | 24 if sys.byteorder != "big": locations.byteswap() 49 if sys.byteorder != "big": locations.byteswap()
|
D | _p_o_s_t.py | 87 if sys.byteorder != "big": indices.byteswap() 136 if sys.byteorder != "big": indices.byteswap() 174 if sys.byteorder != "big": indices.byteswap() 191 if sys.byteorder != "big": indices.byteswap()
|
/external/python/cpython2/Lib/test/ |
D | test_wave.py | 50 if sys.byteorder != 'big': 53 if sys.byteorder == 'big': 83 if sys.byteorder != 'big': 110 if sys.byteorder != 'big': 113 if sys.byteorder == 'big':
|
D | test_struct.py | 10 ISBIGENDIAN = sys.byteorder == "big" 161 for byteorder in ('=', '<', '>', '!'): 162 format = byteorder+code 168 for byteorder in ['', '@']: 169 signed_size = struct.calcsize(byteorder + format_pair[0]) 170 unsigned_size = struct.calcsize(byteorder + format_pair[1]) 356 for byteorder in byteorders: 357 if (byteorder in ('', '@') and code in ('q', 'Q') and 360 format = byteorder+code
|
/external/python/cpython2/Lib/ctypes/test/ |
D | test_byteswap.py | 19 print >> sys.stderr, sys.byteorder 26 if sys.byteorder == "little": 53 if sys.byteorder == "little": 81 if sys.byteorder == "little": 109 if sys.byteorder == "little": 127 if sys.byteorder == "little": 154 if sys.byteorder == "little": 222 if sys.byteorder == "little": 240 if sys.byteorder == "little": 268 if sys.byteorder == "little":
|
/external/python/cpython3/Lib/test/ |
D | test_struct.py | 11 ISBIGENDIAN = sys.byteorder == "big" 18 for byteorder in byteorders: 19 if (byteorder not in ('', '@') and code in ('n', 'N')): 21 yield code, byteorder 144 for code, byteorder in iter_integer_formats(('=', '<', '>', '!')): 145 format = byteorder+code 152 for byteorder in '', '@': 153 signed_size = struct.calcsize(byteorder + format_pair[0]) 154 unsigned_size = struct.calcsize(byteorder + format_pair[1]) 177 self.byteorder = format[:-1] [all …]
|
D | test_wave.py | 50 if sys.byteorder != 'big': 77 if sys.byteorder != 'big': 104 if sys.byteorder != 'big':
|
/external/python/cpython3/Lib/ctypes/test/ |
D | test_byteswap.py | 19 print(sys.byteorder, file=sys.stderr) 46 if sys.byteorder == "little": 73 if sys.byteorder == "little": 101 if sys.byteorder == "little": 129 if sys.byteorder == "little": 147 if sys.byteorder == "little": 174 if sys.byteorder == "little": 242 if sys.byteorder == "little": 260 if sys.byteorder == "little": 288 if sys.byteorder == "little":
|
/external/python/cpython3/Modules/clinic/ |
D | _codecsmodule.c.h | 428 const char *errors, int byteorder, int final); 436 int byteorder = 0; in _codecs_utf_16_ex_decode() local 440 &data, &errors, &byteorder, &final)) { in _codecs_utf_16_ex_decode() 443 return_value = _codecs_utf_16_ex_decode_impl(module, &data, errors, byteorder, final); in _codecs_utf_16_ex_decode() 570 const char *errors, int byteorder, int final); 578 int byteorder = 0; in _codecs_utf_32_ex_decode() local 582 &data, &errors, &byteorder, &final)) { in _codecs_utf_32_ex_decode() 585 return_value = _codecs_utf_32_ex_decode_impl(module, &data, errors, byteorder, final); in _codecs_utf_32_ex_decode() 1016 const char *errors, int byteorder); 1024 int byteorder = 0; in _codecs_utf_16_encode() local [all …]
|
/external/python/cpython2/Lib/ctypes/ |
D | _endian.py | 41 if sys.byteorder == "little": 51 elif sys.byteorder == "big":
|
/external/python/cpython3/Lib/ctypes/ |
D | _endian.py | 41 if sys.byteorder == "little": 51 elif sys.byteorder == "big":
|
/external/tensorflow/tensorflow/python/framework/ |
D | tensor_util_test.py | 53 if sys.byteorder == "big": 71 if sys.byteorder == "big": 89 if sys.byteorder == "big": 108 if sys.byteorder == "big": 126 if sys.byteorder == "big": 144 if sys.byteorder == "big": 172 if sys.byteorder == "big": 209 if sys.byteorder == "big": 302 if sys.byteorder == "big": 376 if sys.byteorder == "big": [all …]
|
/external/python/cpython2/Doc/c-api/ |
D | unicode.rst | 529 …PyObject* PyUnicode_DecodeUTF32(const char *s, Py_ssize_t size, const char *errors, int *byteorder) 535 If *byteorder* is non-*NULL*, the decoder starts decoding using the given byte 538 *byteorder == -1: little endian 539 *byteorder == 0: native order 540 *byteorder == 1: big endian 542 If ``*byteorder`` is zero, and the first four bytes of the input data are a 544 not copied into the resulting Unicode string. If ``*byteorder`` is ``-1`` or 547 After completion, *\*byteorder* is set to the current byte order at the end 552 If *byteorder* is *NULL*, the codec starts in native order mode. 559 …eUTF32Stateful(const char *s, Py_ssize_t size, const char *errors, int *byteorder, Py_ssize_t *con… [all …]
|