We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66fe597 commit 8f17581Copy full SHA for 8f17581
libavutil/aes.c
@@ -54,7 +54,11 @@ static uint32_t enc_multbl[4][256];
54
static uint32_t dec_multbl[4][256];
55
#endif
56
57
-#define ROT(x, s) ((x << s) | (x >> (32-s)))
+#if HAVE_BIGENDIAN
58
+# define ROT(x, s) ((x >> s) | (x << (32-s)))
59
+#else
60
+# define ROT(x, s) ((x << s) | (x >> (32-s)))
61
+#endif
62
63
static inline void addkey(av_aes_block *dst, const av_aes_block *src,
64
const av_aes_block *round_key)
0 commit comments