Source-Changes-HG archive

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

[src/trunk]: src/sys/opencrypto In Blowfish_initstate(), make the initstate s...



details:   https://anonhg.NetBSD.org/src/rev/a22587e363df
branches:  trunk
changeset: 550985:a22587e363df
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Aug 26 20:20:17 2003 +0000

description:
In Blowfish_initstate(), make the initstate static, otherwise the
compiler will emit code to first copy it onto the stack before
copying it into the destination context structure.  With this change,
it will only be copied once.

diffstat:

 sys/opencrypto/blf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r da3aa9b03d1c -r a22587e363df sys/opencrypto/blf.c
--- a/sys/opencrypto/blf.c      Tue Aug 26 20:15:13 2003 +0000
+++ b/sys/opencrypto/blf.c      Tue Aug 26 20:20:17 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: blf.c,v 1.1 2003/07/25 21:12:41 jonathan Exp $ */
+/*     $NetBSD: blf.c,v 1.2 2003/08/26 20:20:17 thorpej Exp $ */
 /*     $OpenBSD: blf.c,v 1.4 2002/03/15 18:19:52 millert Exp $ */
 
 /*
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: blf.c,v 1.1 2003/07/25 21:12:41 jonathan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: blf.c,v 1.2 2003/08/26 20:20:17 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -126,7 +126,7 @@
 
 /* P-box and S-box tables initialized with digits of Pi */
 
-       const blf_ctx initstate =
+       static const blf_ctx initstate =
 
        { {
                {



Home | Main Index | Thread Index | Old Index