| 488 | #define SIG_FNV_PRIME 1099511628211ULL |
| 489 | |
| 490 | static uint64_t sig_fold(uint64_t h, const void *data, size_t len) { |
| 491 | const unsigned char *p = data; |
| 492 | for (size_t i = 0; i < len; i++) { |
| 493 | h ^= p[i]; |
| 494 | h *= SIG_FNV_PRIME; |
| 495 | } |
| 496 | return h; |
| 497 | } |
| 498 | |
| 499 | /* Platform-portable mtime_ns (mirrors pipeline_incremental.c). */ |
| 500 | static int64_t sig_stat_mtime_ns(const struct stat *st) { |
no outgoing calls
no test coverage detected