Home
last modified time | relevance | path

Searched refs:big_endian (Results 1 – 9 of 9) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dbinary.h43 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 Dbinary.c196 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 Dobjint_longlong.c46 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 Dobjint.h57 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 Dobjint.c431 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 Dobjint_mpz.c110 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 Dmpz.h116 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 Dmpz.c852 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 Dmoductypes.c268 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