From 7bb4a2b21b69d2d9b38c5f153aa4acdfe0cf0c2a Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Mon, 11 Aug 1997 03:36:18 +0000 Subject: [PATCH] inline git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2903 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/des/md4.c | 6 +++--- lib/des/md5.c | 6 +++--- lib/des/sha.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/des/md4.c b/lib/des/md4.c index f5630d5f1..15eab2395 100644 --- a/lib/des/md4.c +++ b/lib/des/md4.c @@ -68,7 +68,7 @@ md4_init (struct md4 *m) A = 0x67452301; } -static u_int32_t +static inline u_int32_t cshift (u_int32_t x, unsigned n) { return (x << n) | (x >> (32 - n)); @@ -85,7 +85,7 @@ a = cshift(a + OP(b,c,d) + X[k] + i, s) #define DO2(a,b,c,d,k,s,i) DOIT(a,b,c,d,k,s,i,G) #define DO3(a,b,c,d,k,s,i) DOIT(a,b,c,d,k,s,i,H) -static void +static inline void calc (struct md4 *m, u_int32_t *data) { u_int32_t AA, BB, CC, DD; @@ -171,7 +171,7 @@ calc (struct md4 *m, u_int32_t *data) * From `Performance analysis of MD5' by Joseph D. Touch */ -static u_int32_t +static inline u_int32_t swap_u_int32_t (u_int32_t t) { #if defined(WORDS_BIGENDIAN) diff --git a/lib/des/md5.c b/lib/des/md5.c index 3744154f8..91e44b212 100644 --- a/lib/des/md5.c +++ b/lib/des/md5.c @@ -68,7 +68,7 @@ md5_init (struct md5 *m) A = 0x67452301; } -static u_int32_t +static inline u_int32_t cshift (u_int32_t x, unsigned n) { return (x << n) | (x >> (32 - n)); @@ -87,7 +87,7 @@ a = b + cshift(a + OP(b,c,d) + X[k] + (i), s) #define DO3(a,b,c,d,k,s,i) DOIT(a,b,c,d,k,s,i,H) #define DO4(a,b,c,d,k,s,i) DOIT(a,b,c,d,k,s,i,I) -static void +static inline void calc (struct md5 *m, u_int32_t *data) { u_int32_t AA, BB, CC, DD; @@ -195,7 +195,7 @@ calc (struct md5 *m, u_int32_t *data) * From `Performance analysis of MD5' by Joseph D. Touch */ -static u_int32_t +static inline u_int32_t swap_u_int32_t (u_int32_t t) { #if defined(WORDS_BIGENDIAN) diff --git a/lib/des/sha.c b/lib/des/sha.c index 5a683cddb..1c53e582a 100644 --- a/lib/des/sha.c +++ b/lib/des/sha.c @@ -70,7 +70,7 @@ sha_init (struct sha *m) E = 0xc3d2e1f0; } -static u_int32_t +static inline u_int32_t cshift (u_int32_t x, unsigned n) { return (x << n) | (x >> (32 - n)); @@ -98,7 +98,7 @@ do { \ AA = temp; \ } while(0) -static void +static inline void calc (struct sha *m, u_int32_t *in) { u_int32_t AA, BB, CC, DD, EE; @@ -219,7 +219,7 @@ calc (struct sha *m, u_int32_t *in) * From `Performance analysis of SHA' by Joseph D. Touch */ -static u_int32_t +static inline u_int32_t swap_u_int32_t (u_int32_t t) { #if !defined(WORDS_BIGENDIAN)