MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / hash_frames

Function hash_frames

src/misc/alloc_tracker.cpp:330–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328};
329
330static uint64_t hash_frames(void * const *frames, int n) {
331 uint64_t h = 0xcbf29ce484222325ULL;
332 for (int i = 0; i < n; ++i) {
333 h ^= (uint64_t)(uintptr_t)frames[i];
334 h *= 0x100000001b3ULL;
335 }
336 return h;
337}
338
339static void format_with_commas(char *buf, size_t buflen, uint64_t v) {
340 char tmp[32];

Callers 1

dump_alloc_leaksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected