Searched refs:big_endian (Results 1 – 9 of 9) sorted by relevance
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | binary.h | 43 long long mp_binary_get_int(size_t size, bool is_signed, bool big_endian, const byte *src); 44 void mp_binary_set_int(size_t val_sz, bool big_endian, byte *dest, mp_uint_t val);
|
A D | binary.c | 196 long long mp_binary_get_int(size_t size, bool is_signed, bool big_endian, const byte *src) { in mp_binary_get_int() argument 198 if (!big_endian) { in mp_binary_get_int() 269 void mp_binary_set_int(size_t val_sz, bool big_endian, byte *dest, mp_uint_t val) { in mp_binary_set_int() argument 270 if (MP_ENDIANNESS_LITTLE && !big_endian) { in mp_binary_set_int() 272 } else if (MP_ENDIANNESS_BIG && big_endian) { in mp_binary_set_int()
|
A D | objint_longlong.c | 46 mp_obj_t mp_obj_int_from_bytes_impl(bool big_endian, size_t len, const byte *buf) { in mp_obj_int_from_bytes_impl() argument 48 if (!big_endian) { in mp_obj_int_from_bytes_impl() 60 void mp_obj_int_to_bytes_impl(mp_obj_t self_in, bool big_endian, size_t len, byte *buf) { in mp_obj_int_to_bytes_impl() argument 64 if (big_endian) { in mp_obj_int_to_bytes_impl()
|
A D | objint.h | 57 mp_obj_t mp_obj_int_from_bytes_impl(bool big_endian, size_t len, const byte *buf); 58 void mp_obj_int_to_bytes_impl(mp_obj_t self_in, bool big_endian, size_t len, byte *buf);
|
A D | objint.c | 431 bool big_endian = args[2] != MP_OBJ_NEW_QSTR(MP_QSTR_little); in int_to_bytes() local 440 mp_obj_int_to_bytes_impl(args[0], big_endian, len, data); in int_to_bytes() 446 mp_binary_set_int(l, big_endian, data + (big_endian ? (len - l) : 0), val); in int_to_bytes()
|
A D | objint_mpz.c | 110 mp_obj_t mp_obj_int_from_bytes_impl(bool big_endian, size_t len, const byte *buf) { in mp_obj_int_from_bytes_impl() argument 112 mpz_set_from_bytes(&o->mpz, big_endian, len, buf); in mp_obj_int_from_bytes_impl() 116 void mp_obj_int_to_bytes_impl(mp_obj_t self_in, bool big_endian, size_t len, byte *buf) { in mp_obj_int_to_bytes_impl() argument 119 mpz_as_bytes(&self->mpz, big_endian, len, buf); in mp_obj_int_to_bytes_impl()
|
A D | mpz.h | 116 void mpz_set_from_bytes(mpz_t *z, bool big_endian, size_t len, const byte *buf); 147 void mpz_as_bytes(const mpz_t *z, bool big_endian, size_t len, byte *buf);
|
A D | mpz.c | 852 void mpz_set_from_bytes(mpz_t *z, bool big_endian, size_t len, const byte *buf) { in mpz_set_from_bytes() argument 854 if (big_endian) { in mpz_set_from_bytes() 1589 void mpz_as_bytes(const mpz_t *z, bool big_endian, size_t len, byte *buf) { in mpz_as_bytes() argument 1591 if (big_endian) { in mpz_as_bytes() 1607 if (big_endian) { in mpz_as_bytes() 1622 if (big_endian) { in mpz_as_bytes()
|
/AliOS-Things-master/components/py_engine/engine/extmod/ |
A D | moductypes.c | 268 static inline mp_obj_t get_unaligned(uint val_type, byte *p, int big_endian) { in get_unaligned() argument 269 char struct_type = big_endian ? '>' : '<'; in get_unaligned() 274 static inline void set_unaligned(uint val_type, byte *p, int big_endian, mp_obj_t val) { in set_unaligned() argument 275 char struct_type = big_endian ? '>' : '<'; in set_unaligned()
|
Completed in 13 milliseconds