Home
last modified time | relevance | path

Searched refs:str_hash (Results 1 – 3 of 3) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dobjstr.h43 #define GET_STR_HASH(str_obj_in, str_hash) \ argument
44 mp_uint_t str_hash; if (mp_obj_is_qstr(str_obj_in)) \
45 …{ str_hash = qstr_hash(MP_OBJ_QSTR_VALUE(str_obj_in)); } else { str_hash = ((mp_obj_str_t *)MP_OBJ…
A Dqstr.c176 mp_uint_t str_hash = qstr_compute_hash((const byte *)str, str_len); in qstr_find_strn() local
181 …if (Q_GET_HASH(*q) == str_hash && Q_GET_LENGTH(*q) == str_len && memcmp(Q_GET_DATA(*q), str, str_l… in qstr_find_strn()
A Dobjstr.c160 GET_STR_HASH(args[0], str_hash); in mp_obj_str_make_new()
161 if (str_hash == 0) { in mp_obj_str_make_new()
162 str_hash = qstr_compute_hash(str_data, str_len); in mp_obj_str_make_new()
178 o->hash = str_hash; in mp_obj_str_make_new()
217 GET_STR_HASH(args[0], str_hash); in bytes_make_new()
218 if (str_hash == 0) { in bytes_make_new()
219 str_hash = qstr_compute_hash(str_data, str_len); in bytes_make_new()
223 o->hash = str_hash; in bytes_make_new()

Completed in 7 milliseconds