| 54 | } |
| 55 | |
| 56 | static inline int from_hex(int c) |
| 57 | { |
| 58 | if (c >= '0' && c <= '9') |
| 59 | return c - '0'; |
| 60 | else if (c >= 'A' && c <= 'F') |
| 61 | return c - 'A' + 10; |
| 62 | else if (c >= 'a' && c <= 'f') |
| 63 | return c - 'a' + 10; |
| 64 | else |
| 65 | return -1; |
| 66 | } |
| 67 | |
| 68 | static inline uint64_t block_align(uint64_t val, uint64_t align) |
| 69 | { |
no outgoing calls
no test coverage detected