[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/16] crypto/sha256: avoid 'static inline'
From: |
Paul Eggert |
Subject: |
[PATCH 07/16] crypto/sha256: avoid 'static inline' |
Date: |
Sat, 18 Aug 2012 17:53:13 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0 |
* lib/sha256.c (set_uint32): Now static, not static inline.
* m4/sha256.m4 (gl_SHA256): Do not require AC_C_INLINE.
---
ChangeLog | 4 ++++
lib/sha256.c | 2 +-
m4/sha256.m4 | 3 +--
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 441dfe0..6554558 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2012-08-18 Paul Eggert <address@hidden>
+ 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.
+
crypto/sha1: avoid 'static inline'
* lib/sha1.c (set_uint32): Now static, not static inline.
* m4/sha1.m4 (gl_SHA1): Do not require AC_C_INLINE.
diff --git a/lib/sha256.c b/lib/sha256.c
index a8d29da..55273c6 100644
--- a/lib/sha256.c
+++ b/lib/sha256.c
@@ -90,7 +90,7 @@ sha224_init_ctx (struct sha256_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
* (uint32_t *) cp = v */
-static inline void
+static void
set_uint32 (char *cp, uint32_t v)
{
memcpy (cp, &v, sizeof v);
diff --git a/m4/sha256.m4 b/m4/sha256.m4
index 78cc95e..f75a7fb 100644
--- a/m4/sha256.m4
+++ b/m4/sha256.m4
@@ -1,4 +1,4 @@
-# sha256.m4 serial 5
+# sha256.m4 serial 6
dnl Copyright (C) 2005, 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_SHA256],
[
dnl Prerequisites of lib/sha256.c.
AC_REQUIRE([gl_BIGENDIAN])
- AC_REQUIRE([AC_C_INLINE])
])
--
1.7.6.5
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 07/16] crypto/sha256: avoid 'static inline',
Paul Eggert <=