summaryrefslogtreecommitdiff
path: root/lib/md5.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2016-11-27 00:23:14 +0000
committerPádraig Brady <P@draigBrady.com>2016-11-27 00:27:14 +0000
commitc7bda0314dae8986496f3af770563fafd1f4bc2e (patch)
tree96380a323b202292fe7d31651291a15c711f7f96 /lib/md5.c
parent45ba7f22dafd07233d67ccb2d90824a02f9d6dec (diff)
downloadgnulib-c7bda0314dae8986496f3af770563fafd1f4bc2e.tar.gz
md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
* lib/md4.c (md4_process_bytes): The existing define is made internal in recent versions of glibc, so also use this new public define. * lib/md5.c (md5_process_bytes): Likewise. * lib/sha1.c (sha1_process_bytes): Likewise. * lib/sha256.c (sha256_process_bytes): Likewise. * lib/sha512.c (sha512_process_bytes): Likewise.
Diffstat (limited to 'lib/md5.c')
-rw-r--r--lib/md5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/md5.c b/lib/md5.c
index 33c3a08b73..1b39da8135 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -259,7 +259,7 @@ md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx)
/* Process available complete blocks. */
if (len >= 64)
{
-#if !_STRING_ARCH_unaligned
+#if !(_STRING_ARCH_unaligned || _STRING_INLINE_unaligned)
# define UNALIGNED_P(p) ((uintptr_t) (p) % alignof (uint32_t) != 0)
if (UNALIGNED_P (buffer))
while (len > 64)