MCPcopy Create free account
hub / github.com/facebook/time / fbclock_clockdata_crc

Function fbclock_clockdata_crc

fbclock/fbclock.c:68–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66struct phc_time_res {
67 int64_t ts; // last ts got from PHC
68 int64_t delay; // mean delay of several requests
69};
70
71static inline uint64_t fbclock_clockdata_crc(fbclock_clockdata* value) {
72 uint64_t counter = fbclock_crc64(0xFFFFFFFF, value->ingress_time_ns);
73 counter = fbclock_crc64(counter, value->error_bound_ns);
74 counter = fbclock_crc64(counter, value->holdover_multiplier_ns);
75 return counter ^ 0xFFFFFFFF;
76}

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…