setup_bytes is a convenience function which accounts for internal memory * usage when deciding how many elements to store. It isn't perfect because * it doesn't account for any overhead (struct size, MallocUsage, collection * and epoch flags). This was done to simplify selecting a power of two * size. In the expected use case, an extra two bits per entry should be * neglig
| 361 | * documentation for more detail) |
| 362 | */ |
| 363 | uint32_t setup_bytes(size_t bytes) |
| 364 | { |
| 365 | return setup(bytes/sizeof(Element)); |
| 366 | } |
| 367 | |
| 368 | /** insert loops at most depth_limit times trying to insert a hash |
| 369 | * at various locations in the table via a variant of the Cuckoo Algorithm |
no outgoing calls
no test coverage detected