summaryrefslogtreecommitdiff
path: root/lib/sha512.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-11-20 22:25:08 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2012-11-29 23:38:54 -0800
commita901e1f94eb5223ea4461dac1c7b4778ea58d8bf (patch)
tree78db36c042f66a14651b2296ef30a0ebb0f08e75 /lib/sha512.c
parent30d594eb300acfbf6a829bb299bface0d7ea8d8c (diff)
downloadgnulib-a901e1f94eb5223ea4461dac1c7b4778ea58d8bf.tar.gz
arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
* lib/arctwo.c (to_uchar): * lib/md4.c (set_uint32): * lib/md5.c (set_uint32): * lib/sha1.c (set_uint32): * lib/sha256.c (set_uint32): * lib/sha512.c (set_uint64): Now static, not static inline. This is a bit simpler, and doesn't affect performance with GCC and default optimization. * m4/arctwo.m4 (gl_ARCTWO): * m4/md4.m4 (gl_MD4): * m4/md5.m4 (gl_MD5): * m4/sha1.m4 (gl_SHA1): * m4/sha256.m4 (gl_SHA256): * m4/sha512.m4 (gl_SHA512): Do not require AC_C_INLINE.
Diffstat (limited to 'lib/sha512.c')
-rw-r--r--lib/sha512.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sha512.c b/lib/sha512.c
index cf62f2034e..dfb67a305d 100644
--- a/lib/sha512.c
+++ b/lib/sha512.c
@@ -97,7 +97,7 @@ sha384_init_ctx (struct sha512_ctx *ctx)
/* Copy the value from V into the memory location pointed to by *CP,
If your architecture allows unaligned access, this is equivalent to
* (__typeof__ (v) *) cp = v */
-static inline void
+static void
set_uint64 (char *cp, u64 v)
{
memcpy (cp, &v, sizeof v);