bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 08/16] crypto/sha512: avoid 'static inline'


From: Paul Eggert
Subject: [PATCH 08/16] crypto/sha512: avoid 'static inline'
Date: Sat, 18 Aug 2012 17:53:36 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0

* lib/sha512.c (set_uint64): Now static, not static inline.
* m4/sha512.m4 (gl_SHA512): Do not require AC_C_INLINE.
---
 ChangeLog    |    4 ++++
 lib/sha512.c |    2 +-
 m4/sha512.m4 |    3 +--
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6554558..be59365 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2012-08-18  Paul Eggert  <address@hidden>
 
+       crypto/sha512: avoid 'static inline'
+       * lib/sha512.c (set_uint64): Now static, not static inline.
+       * m4/sha512.m4 (gl_SHA512): Do not require AC_C_INLINE.
+
        crypto/sha256: avoid 'static inline'
        * lib/sha256.c (set_uint32): Now static, not static inline.
        * m4/sha256.m4 (gl_SHA256): Do not require AC_C_INLINE.
diff --git a/lib/sha512.c b/lib/sha512.c
index cf62f20..dfb67a3 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);
diff --git a/m4/sha512.m4 b/m4/sha512.m4
index 937ea8d..e6e2739 100644
--- a/m4/sha512.m4
+++ b/m4/sha512.m4
@@ -1,4 +1,4 @@
-# sha512.m4 serial 6
+# sha512.m4 serial 7
 dnl Copyright (C) 2005-2006, 2008-2012 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -8,5 +8,4 @@ AC_DEFUN([gl_SHA512],
 [
   dnl Prerequisites of lib/sha512.c.
   AC_REQUIRE([gl_BIGENDIAN])
-  AC_REQUIRE([AC_C_INLINE])
 ])
-- 
1.7.6.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]