Linux cryptographic layer development
 help / color / mirror / Atom feed
* [PATCH] [CRYPTO] cast6: inline bloat--
@ 2008-01-07 13:40 Ilpo Järvinen
  2008-01-08  6:33 ` Herbert Xu
  2008-01-10  3:03 ` Andi Kleen
  0 siblings, 2 replies; 14+ messages in thread
From: Ilpo Järvinen @ 2008-01-07 13:40 UTC (permalink / raw)
  To: Herbert Xu; +Cc: linux-crypto

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1587 bytes --]

Bloat-o-meter shows rather high readings for cast6...

crypto/cast6.c:
  cast6_setkey  | -1310
  cast6_encrypt | -4567
  cast6_decrypt | -4561
 3 functions changed, 10438 bytes removed, diff: -10438

crypto/cast6.c:
  W    | +659
  Q    | +308
  QBAR | +316
 3 functions changed, 1283 bytes added, diff: +1283

crypto/cast6.o:
 6 functions changed, 1283 bytes added, 10438 bytes removed, diff: -9155

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
---
 crypto/cast6.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/crypto/cast6.c b/crypto/cast6.c
index 136ab6d..5fd9420 100644
--- a/crypto/cast6.c
+++ b/crypto/cast6.c
@@ -369,7 +369,7 @@ static const u8 Tr[4][8] = {
 };
 
 /* forward octave */
-static inline void W(u32 *key, unsigned int i) {
+static void W(u32 *key, unsigned int i) {
 	u32 I;
 	key[6] ^= F1(key[7], Tr[i % 4][0], Tm[i][0]);
 	key[5] ^= F2(key[6], Tr[i % 4][1], Tm[i][1]);
@@ -428,7 +428,7 @@ static int cast6_setkey(struct crypto_tfm *tfm, const u8 *in_key,
 }
 
 /*forward quad round*/
-static inline void Q (u32 * block, u8 * Kr, u32 * Km) {
+static void Q (u32 * block, u8 * Kr, u32 * Km) {
 	u32 I;
 	block[2] ^= F1(block[3], Kr[0], Km[0]);
 	block[1] ^= F2(block[2], Kr[1], Km[1]);
@@ -437,7 +437,7 @@ static inline void Q (u32 * block, u8 * Kr, u32 * Km) {
 }
 
 /*reverse quad round*/
-static inline void QBAR (u32 * block, u8 * Kr, u32 * Km) {
+static void QBAR (u32 * block, u8 * Kr, u32 * Km) {
 	u32 I;
         block[3] ^= F1(block[0], Kr[3], Km[3]);
         block[0] ^= F3(block[1], Kr[2], Km[2]);
-- 
1.5.0.6

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-01-12  8:04 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-07 13:40 [PATCH] [CRYPTO] cast6: inline bloat-- Ilpo Järvinen
2008-01-08  6:33 ` Herbert Xu
2008-01-10  3:03 ` Andi Kleen
2008-01-10  9:17   ` Ilpo Järvinen
2008-01-10  9:25     ` Andi Kleen
2008-01-10  9:27       ` Herbert Xu
2008-01-10  9:44         ` Andi Kleen
2008-01-10 13:35         ` Sebastian Siewior
2008-01-10 15:46           ` Andi Kleen
2008-01-12  0:09             ` Sebastian Siewior
2008-01-12  0:57               ` Herbert Xu
2008-01-12  8:04                 ` Sebastian Siewior
2008-01-12  2:47               ` Andi Kleen
2008-01-12  2:56                 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox