* Decode a big-endian length len vector of (unsigned char) into a length * len/4 vector of (uint64_t). Assumes len is a multiple of 8. */
| 71 | * len/4 vector of (uint64_t). Assumes len is a multiple of 8. |
| 72 | */ |
| 73 | static void |
| 74 | be64dec_vect(uint64_t *dst, const unsigned char *src, size_t len) |
| 75 | { |
| 76 | size_t i; |
| 77 | |
| 78 | for (i = 0; i < len / 8; i++) |
| 79 | dst[i] = be64dec(src + i * 8); |
| 80 | } |
| 81 | |
| 82 | #endif /* BYTE_ORDER != BIG_ENDIAN */ |
| 83 |
no test coverage detected