FNV-1a over a NUL-terminated path, without calling the strlen we wrap. */
| 1388 | |
| 1389 | /* FNV-1a over a NUL-terminated path, without calling the strlen we wrap. */ |
| 1390 | static uint64_t path_hash(const char *p) { |
| 1391 | uint64_t h = 0xcbf29ce484222325ULL; |
| 1392 | for (; p && *p; p++) { |
| 1393 | h ^= (uint8_t)*p; |
| 1394 | h *= 0x100000001b3ULL; |
| 1395 | } |
| 1396 | return h; |
| 1397 | } |
| 1398 | |
| 1399 | void cbm_work_note_path(cbm_work_kind_t kind, void *site, const char *path, bool failed) { |
| 1400 | if (!cbm_memev_enabled()) { |
no outgoing calls
no test coverage detected