diff options
Diffstat (limited to 'src/DSi_AES.h')
-rw-r--r-- | src/DSi_AES.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DSi_AES.h b/src/DSi_AES.h index f3aa550..4ee9bdd 100644 --- a/src/DSi_AES.h +++ b/src/DSi_AES.h @@ -26,12 +26,12 @@ #pragma GCC diagnostic ignored "-Wattributes" #if defined(__GNUC__) && (__GNUC__ >= 11) // gcc 11.* // NOTE: Yes, the compiler does *not* recognize this code pattern, so it is indeed an optimization. -__attribute((always_inline)) static void Bswap128(void* Dst, void* Src) +__attribute((always_inline)) static void Bswap128(void* Dst, const void* Src) { *(__int128*)Dst = __builtin_bswap128(*(__int128*)Src); } #else -__attribute((always_inline)) static void Bswap128(void* Dst, void* Src) +__attribute((always_inline)) static void Bswap128(void* Dst, const void* Src) { for (int i = 0; i < 16; ++i) { |