reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

projects/compiler-rt/lib/sanitizer_common/sanitizer_addrhashmap.h
  229   if (add) {
  230     for (uptr i = 0; i < add->size; i++) {
  231       Cell *c = &add->cells[i];
  264   if (!add) {
  267     add = (AddBucket*)InternalAlloc(kInitSize);
  268     internal_memset(add, 0, kInitSize);
  269     add->cap = (kInitSize - sizeof(*add)) / sizeof(add->cells[0]) + 1;
  269     add->cap = (kInitSize - sizeof(*add)) / sizeof(add->cells[0]) + 1;
  269     add->cap = (kInitSize - sizeof(*add)) / sizeof(add->cells[0]) + 1;
  270     add->size = 0;
  271     atomic_store(&b->add, (uptr)add, memory_order_relaxed);
  273   if (add->size == add->cap) {
  273   if (add->size == add->cap) {
  275     uptr oldsize = sizeof(*add) + (add->cap - 1) * sizeof(add->cells[0]);
  275     uptr oldsize = sizeof(*add) + (add->cap - 1) * sizeof(add->cells[0]);
  275     uptr oldsize = sizeof(*add) + (add->cap - 1) * sizeof(add->cells[0]);
  279     add1->cap = (newsize - sizeof(*add)) / sizeof(add->cells[0]) + 1;
  279     add1->cap = (newsize - sizeof(*add)) / sizeof(add->cells[0]) + 1;
  280     add1->size = add->size;
  281     internal_memcpy(add1->cells, add->cells, add->size * sizeof(add->cells[0]));
  281     internal_memcpy(add1->cells, add->cells, add->size * sizeof(add->cells[0]));
  281     internal_memcpy(add1->cells, add->cells, add->size * sizeof(add->cells[0]));
  282     InternalFree(add);
  284     add = add1;
  287   uptr i = add->size++;
  288   Cell *c = &add->cells[i];