Read a numeric property according to its size and return it as a 64-bit * value. */
| 176 | * value. |
| 177 | */ |
| 178 | static inline uint64_t of_read_number(const uint32_t *cell, int size) |
| 179 | { |
| 180 | uint64_t r = 0; |
| 181 | |
| 182 | while (size--) |
| 183 | r = (r << 32) | be32toh(*(cell++)); |
| 184 | return r; |
| 185 | } |
| 186 | |
| 187 | #endif /* __OF_H */ |
no outgoing calls
no test coverage detected