The function is responsible for converting little to big endian. It had an incorrect swizzle for the last 2 bytes.
Unified · Split
| @@ -68,7 +68,7 @@ uint64_t align64(uint64_t src, uint64_t a) · 67 unmodified lines | ||
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | #define reverse4(src) \ |
| 71 | − (pack32(unpack8(uint32_t(src)).wzxy)) | |
| 71 | + (pack32(unpack8(uint32_t(src)).wzyx)) | |
| 72 | 72 | |
| 73 | 73 | uint64_t reverse8(uint64_t src) |
| 74 | 74 | { |