Searched refs:elem_size_lg2 (Results 1 – 3 of 3) sorted by relevance
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/ |
D | msg.c | 73 int elem_size_lg2 = arr->data & 7; in _upb_array_realloc() local 74 size_t old_bytes = arr->size << elem_size_lg2; in _upb_array_realloc() 81 new_bytes = new_size << elem_size_lg2; in _upb_array_realloc() 88 arr->data = _upb_tag_arrptr(ptr, elem_size_lg2); in _upb_array_realloc() 93 static upb_array *getorcreate_array(upb_array **arr_ptr, int elem_size_lg2, in getorcreate_array() argument 97 arr = _upb_array_new(arena, 4, elem_size_lg2); in getorcreate_array() 105 int elem_size_lg2, upb_arena *arena) { in _upb_array_resize_fallback() argument 106 upb_array *arr = getorcreate_array(arr_ptr, elem_size_lg2, arena); in _upb_array_resize_fallback() 112 int elem_size_lg2, upb_arena *arena) { in _upb_array_append_fallback() argument 113 upb_array *arr = getorcreate_array(arr_ptr, elem_size_lg2, arena); in _upb_array_append_fallback() [all …]
|
D | msg.h | 219 UPB_INLINE uintptr_t _upb_array_tagptr(void* ptr, int elem_size_lg2) { in _upb_array_tagptr() argument 220 UPB_ASSERT(elem_size_lg2 <= 4); in _upb_array_tagptr() 221 return (uintptr_t)ptr | elem_size_lg2; in _upb_array_tagptr() 228 UPB_INLINE uintptr_t _upb_tag_arrptr(void* ptr, int elem_size_lg2) { in _upb_tag_arrptr() argument 229 UPB_ASSERT(elem_size_lg2 <= 4); in _upb_tag_arrptr() 231 return (uintptr_t)ptr | (unsigned)elem_size_lg2; in _upb_tag_arrptr() 235 int elem_size_lg2) { in _upb_array_new() argument 237 const size_t bytes = sizeof(upb_array) + (init_size << elem_size_lg2); in _upb_array_new() 240 arr->data = _upb_tag_arrptr(UPB_PTR_AT(arr, arr_size, void), elem_size_lg2); in _upb_array_new() 251 int elem_size_lg2, upb_arena *arena); [all …]
|
D | decode_fast.c | 195 uint8_t elem_size_lg2 = __builtin_ctz(valbytes); in fastdecode_resizearr() local 197 farr->arr->data = _upb_array_tagptr(new_ptr, elem_size_lg2); in fastdecode_resizearr() 273 uint8_t elem_size_lg2 = __builtin_ctz(valbytes); in fastdecode_getfield() local 279 farr->arr = _upb_array_new(&d->arena, 8, elem_size_lg2); in fastdecode_getfield() 585 uint8_t elem_size_lg2 = __builtin_ctz(valbytes); in fastdecode_packedfixed() local 589 *arr_p = arr = _upb_array_new(&d->arena, elems, elem_size_lg2); in fastdecode_packedfixed()
|