(d *[40]byte)
| 110 | } |
| 111 | |
| 112 | func clockDataCRC(d *[40]byte) uint64 { |
| 113 | ingress := binary.LittleEndian.Uint64(d[0:8]) |
| 114 | errorBound := uint64(binary.LittleEndian.Uint32(d[8:12])) |
| 115 | holdover := uint64(binary.LittleEndian.Uint32(d[12:16])) |
| 116 | counter := uint64(0xFFFFFFFF) ^ ingress |
| 117 | counter ^= errorBound |
| 118 | counter ^= holdover |
| 119 | return counter ^ 0xFFFFFFFF |
| 120 | } |
| 121 | |
| 122 | // StoreFBClockData writes fbclock data to shared memory via mmap |
| 123 | func StoreFBClockData(fd uintptr, d Data) error { |
no outgoing calls
no test coverage detected
searching dependent graphs…