Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
bzEq committed Mar 8, 2024
1 parent c5f10aa commit 739624b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion passes/bytes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ void ByteSwap(uint8_t *__restrict__ dst, const uint8_t *__restrict__ src,
const size_t r = m * n;
for (size_t i = 0; i < m; ++i)
dst64[i] = __builtin_bswap64(src64[m - 1 - i]);
std::swap(buf + r, buf + len);
for (size_t i = 0; i < len - r; ++i)
dst[r + i] = src[len - 1 - i];
}

void ByteSwapInPlace(uint8_t *__restrict__ buf, size_t len) {
Expand Down

0 comments on commit 739624b

Please sign in to comment.