summaryrefslogtreecommitdiff
path: root/lib/md4.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/md4.c')
-rw-r--r--lib/md4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/md4.c b/lib/md4.c
index 3d624e0..3012089 100644
--- a/lib/md4.c
+++ b/lib/md4.c
@@ -33,9 +33,9 @@
# include "unlocked-io.h"
#endif
+#include <byteswap.h>
#ifdef WORDS_BIGENDIAN
-# define SWAP(n) \
- (((n) << 24) | (((n) & 0xff00) << 8) | (((n) >> 8) & 0xff00) | ((n) >> 24))
+# define SWAP(n) bswap_32 (n)
#else
# define SWAP(n) (n)
#endif